Skip to contents

Estimate bias using t-test and augmented t-test

Usage

bias(revisions.view, na.zero = FALSE)

Arguments

revisions.view

mts object. Vertical or diagonal view of the get_revisions() output

na.zero

Boolean whether missing values should be considered as 0 or rather as data not (yet) available (the default).

Examples

if (FALSE) { # rjd3jars::check_java_version(silent = TRUE)

## Simulated data
df_long <- simulate_long(
    n_period = 10L * 4L,
    n_revision = 5L,
    periodicity = 4L,
    start_period = as.Date("2010-01-01")
)

## Create vintage and test
vintages <- create_vintages(df_long, periodicity = 4)
revisions <- get_revisions(vintages, gap = 1)
bias(revisions[["diagonal_view"]])
}