View source: R/spec_regarima.R
set_arima | R Documentation |
Function allowing to customize the ARIMA model structure when the automatic modelling is disabled.(see example)
set_arima(
x,
mean = NA,
mean.type = c(NA, "Undefined", "Fixed", "Initial"),
p = NA,
d = NA,
q = NA,
bp = NA,
bd = NA,
bq = NA,
coef = NA,
coef.type = c(NA, "Undefined", "Fixed", "Initial")
)
x |
the specification to customize, must be a "SPEC" class object (see details). |
mean |
to fix the coefficient of the mean. If |
mean.type |
a character defining the mean coefficient estimation procedure.
Possible procedures are: |
p , d , q , bp , bd , bq |
to specify the order of the SARIMA model in the form ARIMA(p,d,q)(bp,bd,bd). |
coef |
a vector providing the coefficients for the regular and seasonal AR and MA polynomials.
The vector length must be equal to the sum of the regular and seasonal AR and MA orders.
The coefficients shall be provided in the following order: regular AR (Phi; |
coef.type |
a vector defining the ARMA coefficients estimation procedure.
Possible procedures are: |
x
specification parameter must be a JD3_X13_SPEC" class object generated with rjd3x13::x13_spec()
(or "JD3_REGARIMA_SPEC" generated with rjd3x13::spec_regarima()
or "JD3_TRAMOSEATS_SPEC"
generated with rjd3tramoseats::spec_tramoseats()
or "JD3_TRAMO_SPEC" generated with
rjd3tramoseats::spec_tramo()
).
More information on reg-arima modelling in JDemetra+ online documentation: https://jdemetra-new-documentation.netlify.app/
set_automodel
, set_transform
# create default spec
# my_spec<-rjd3x13::x13_spec("rsa5c")
# disable automatic arima modelling
# my_spec<-set_automodel(my_spec, enabled = FALSE)
# customize arima model
# my_spec <-set_arima(my_spec,mean = 0.2,
# mean.type = "Fixed",
# p = 1, d = 2, q = 0,
# bp = 1, bd = 1, bq = 0,
# coef = c(0.6,0.7),
# coef.type = c("Initial","Fixed"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.