Combine mutliple objects of persephone objects into a new persephone object. On the resulting objects seasonal adjustment can be performed to all elements at once
persephone::persephone
-> multipleTimeSeries
components
the series of the multiple time series
adjusted
results from the seasonal adjustment
params
of all components
forecasts
get forecasts
new()
create a new multiple time series object
multipleTimeSeries$new(..., list = NULL)
...
one or more objects which are either of class persephone or can be coerced to persephone objects with asPersephone. If more than one element is supplied, the underlying time series must have the same time instances. All elements supplied in ... must be named.
list
a list of persephone objects as alternative input to ...
.
This argument can also handle mts objects
setOptions()
sets options for all entries of the dependency tree recursively (if recursive = TRUE). See vignette("persephone-hierarchical") for more details.
iterate()
iterate over all components
fun
a function that takes a persephone object as a parameter
asTable
if true, the return value of this method will be coerced to a data.frame
component
the id of the component
unnest
if asTable = FALSE
, converts the return value from a
nested list into a flat list
this functin is similar to lapply()
in the sense that it
can be used to apply a function to several persephone objects
simultaniusely
updateParams()
change all or some parameters of components
generateQrTable()
Generate a table for the eurostat quality report
fixOutlier()
fix the automatically detected outliers
component
character vector with names of the components for which the parameters should be changed. If NULL (default) the parameters of all components will be changed
timespan
number of months from the end of the time series where outliers are not fixed
verbose
if TRUE the changed parameters will be reported
if (FALSE) {
objX13 <- perX13(AirPassengers, "RSA3")
bt <- perBatch(a = objX13, b = objX13)
bt$run()
bt$adjusted
bt$updateParams(easter.enabled = FALSE)
bt$updateParams(component = "a", usrdef.outliersEnabled = TRUE,
usrdef.outliersType = c("AO","LS","LS"),
usrdef.outliersDate=c("1950-01-01","1955-04-01","1959-10-01"))
bt$fixModel()
}
## ------------------------------------------------
## Method `multipleTimeSeries$run`
## ------------------------------------------------
perX13(AirPassengers)$run()