series
function imports all
tables that can be saved in X-13ARIMA-SEATS.series(x, series, reeval = TRUE, verbose = TRUE)
"seas"
.TRUE
, the model is re-evaluated with the
corresponding specs enabled.TRUE
, a message is returned if a spec is added
during reevaluation."ts"
or
"data.frame"
.series
re-evaluates the call with the corresponding specs enabled (also returning a
message). Note that re-evaluation doubles the overall computational time. If
you want to accelerate the procedure, you have to be explicit about the
output in the model call (see examples).List of all importable tables from X-13ARIMA-SEATS:
Comprehensive list of R examples from the X-13ARIMA-SEATS manual:
Official X-13ARIMA-SEATS manual:
seas
for the main function.m <- seas(AirPassengers)
series(m, "fct") # re-evaluate with the forecast spec activated
# more than one series
series(m, c("rsd", "fct"))
m <- seas(AirPassengers, forecast.save = "fct")
series(m, "fct") # no re-evaluation (much faster!)
# using long names
series(m, "forecast.forecasts")
# history spec
series(m, "history.trendestimates")
series(m, "history.sfestimates")
series(m, "history.saestimates")
series(m, c("history.sfestimates", "history.trendestimates"))
# slidingspans spec
series(m, "slidingspans.sfspans")
series(m, "slidingspans.tdspans")
### Some X-13ARIMA-SEATS functions can be replicated in R:
# X-13ARIMA-SEATS spectrum
plot(series(m, "spectrum.specorig")[,-1], t = "l")
# R equivalent: spectrum from stats
spectrum(diff(log(AirPassengers)), method = "ar")
# X-13ARIMA-SEATS pacf
x13.pacf <- series(m, "identify.pacf")
plot(x13.pacf[,1:2])
lines(x13.pacf[,3])
lines(-x13.pacf[,3])
# R equivalent: pacf from stats
pacf(AirPassengers, lag.max = 35)
Run the code above in your browser using DataLab