View source: R/modelling_context.R
| modelling_context | R Documentation |
Function allowing to include calendars and external regressors in a format
that makes them usable in an estimation process (Reg-ARIMA or Tramo
modelling, stand alone or as pre-processing in seasonal adjustment).
The regressors can be created with functions available in the package or
come from any other source, provided they are ts class objects.
modelling_context(calendars = NULL, variables = NULL, verbose = TRUE)
calendars |
list of calendars. |
variables |
list of variables. |
verbose |
Boolean indicating whether to print additional information.
Default is |
list of calendars and variables
More information on auxiliary variables in JDemetra+ online documentation: https://doc.jdemetra.org/a-outlier-detection
add_usrdefvar, intervention_variable
# Creating one or several external regressors (TS objects), which will
# be gathered in one or several groups
iv1 <- intervention_variable(12, c(2000, 1), 60,
starts = "2001-01-01", ends = "2001-12-01"
)
iv2 <- intervention_variable(12, c(2000, 1), 60,
starts = "2001-01-01", ends = "2001-12-01", delta = 1
)
# Regressors as a list of two groups reg1 and reg2
vars <- list(reg1 = list(x = iv1), reg2 = list(x = iv2), reg3 = ABS)
# Creating the modelling context
my_context <- modelling_context(variables = vars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.