predict.seas | R Documentation |
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.
## S3 method for class 'seas'
predict(object, newdata, ...)
object |
an object of class |
newdata |
an object of class |
... |
further arguments, passed to |
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))
.
Object of class "ts"
.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.