predict.tfm | R Documentation |
predict
computes point and interval predictions for a time series
based on a tfm
object.
## S3 method for class 'tfm' predict( object, newdata = NULL, y = NULL, ori = NULL, n.ahead = NULL, level = 0.95, i = NULL, envir = NULL, ... )
object |
an object of class |
newdata |
new data for the predictors for the forecast period. This is
a matrix if there is more than one predictor. The number of columns is
equal to the number of predictors, the number of rows equal to
|
y |
an object of class |
ori |
the origin of prediction. By default, it is the last observation. |
n.ahead |
number of steps ahead. |
level |
confidence level. |
i |
transformation of the series |
envir |
environment in which the function arguments are evaluated. If NULL the calling environment of this function will be used. |
... |
additional arguments. |
Forecasts for the inputs of a tfm
object can be provided
in tree ways: (1) extending the time series with forecasts so that the length
of the intput is greater than the length of the output, (2) computed
internally from the um
object associated to the input and (3) with
the newdata
argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.