View source: R/spec_regarima.R
set_easter | R Documentation |
Set Easter effect correction in Pre-Processing Specification
set_easter(
x,
enabled = NA,
julian = NA,
duration = NA,
test = c(NA, "Add", "Remove", "None"),
coef = NA,
coef.type = c(NA, "Estimated", "Fixed"),
type = c(NA, "Unused", "Standard", "IncludeEaster", "IncludeEasterMonday")
)
x |
the specification to customize, must be a "SPEC" class object (see details). |
enabled |
a logical indicating if the program considers the Easter effect in the pre-processing model. Default = TRUE. |
julian |
a logical indicating if the program uses the Julian Easter (expressed in Gregorian calendar). |
duration |
a numeric indicating the duration of the Easter effect (length in days, between 1 and 20). Default value = 8 in REGARIMA/X-13 and 6 in TRAMO. |
test |
defines the pre-tests for the significance of the Easter effect based on the t-statistic
(the Easter effect is considered as significant if the t-statistic is greater than 1.96):
|
coef |
to set the coefficient of the easter regressor.(Test parameter has to be set to |
coef.type |
a character defining the easter regressor coefficient estimation procedure.
Possible procedures are: |
type |
(TRAMO specific) a |
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 calendar correction in JDemetra+ online documentation: https://jdemetra-new-documentation.netlify.app/a-calendar-correction
easter_variable
, easter_day
# init_spec <- rjd3x13::x13_spec("RSA5c")
# new_spec<-set_easter(init_spec,
# enabled = TRUE,
# duration = 12,
# test = "None",
# type = "IncludeEasterMonday")
# sa<-rjd3x13::x13(ABS$X0.2.09.10.M,new_spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.