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
componentsthe series of the multiple time series
adjustedresults from the seasonal adjustment
paramsof all components
forecastsget 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.
lista 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
funa function that takes a persephone object as a parameter
asTableif true, the return value of this method will be coerced to a data.frame
componentthe id of the component
unnestif 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
componentcharacter vector with names of the components for which the parameters should be changed. If NULL (default) the parameters of all components will be changed
timespannumber of months from the end of the time series where outliers are not fixed
verboseif 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()