Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.seas

Seasonal Adjusted Series


Description

Returns the seasonally adjusted series of an (optionally re-evaluated) model of class "seas". Without further arguments, this is equivalent to a call to the final() function.

Usage

## S3 method for class 'seas'
predict(object, newdata, ...)

Arguments

object

an object of class "seas".

newdata

an object of class "ts". new data values for the x argument in the seas() function.

...

further arguments, passed to update.seas(), to re-evaluate the model.

Details

With the newdata argument supplied, the "seas" object is re- evaluated, using the original model call. This is equivalent of calling final(update(m, x = newdata)).

Value

Object of class "ts".

Examples

# Using data from Dec. 59 to estimate a model
ap.short <- window(AirPassengers, end = c(1959, 12))
m <- seas(ap.short)
predict(m)
final(m)     # equivalent

# Use Dec. 59 model specification to estimate data up to Dec. 60
predict(m, AirPassengers)

seasonal

R Interface to X-13-ARIMA-SEATS

v1.8.2
GPL-3
Authors
Christoph Sax [aut, cre] (<https://orcid.org/0000-0002-7192-7044>), Dirk Eddelbuettel [ctb] (<https://orcid.org/0000-0001-6419-907X>)
Initial release
2021-03-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.