| regarima | R Documentation |
RegARIMA model, pre-adjustment in X13
regarima(
ts,
spec = c("rg4", "rg0", "rg1", "rg2c", "rg3", "rg5c"),
context = NULL,
userdefined = NULL
)
regarima_fast(
ts,
spec = c("rg4", "rg0", "rg1", "rg2c", "rg3", "rg5c"),
context = NULL,
userdefined = NULL
)
ts |
an univariate time series. |
spec |
the model specification. Can be either the name of a predefined specification or a user-defined specification. |
context |
list of external regressors (calendar or other) to be used for estimation |
userdefined |
a vector containing additional output variables
(see |
the regarima() function returns a list with the results
("JD3_REGARIMA_RSLTS" object), the estimation specification and the result
specification, while regarima_fast() is a faster function that only returns
the results.
library("rjd3toolkit")
y <- ABS$X0.2.09.10.M
sp <- regarima_spec("rg5c")
sp <- add_outlier(sp,
type = c("AO"), c("2015-01-01", "2010-01-01")
)
regarima_fast(y, spec = sp)
sp <- set_transform(
set_tradingdays(
set_easter(sp, enabled = FALSE),
option = "workingdays"
),
fun = "None"
)
regarima_fast(y, spec = sp)
sp <- set_outlier(sp, outliers.type = c("AO"))
regarima_fast(y, spec = sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.