predict
computes point and interval predictions for a time series
based on a tfm
object.
# S3 method for tfm
predict(
object,
newdata = NULL,
y = NULL,
ori = NULL,
n.ahead = NULL,
level = 0.95,
i = NULL,
envir = NULL,
...
)
an object of class um
.
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
n.ahead
. If there is one predictor only the data may be provided
alternatively as a vector.
an object of class ts
.
the origin of prediction. By default, it is the last observation.
number of steps ahead.
confidence level.
transformation of the series y
to be forecasted. It is a
lagpol as those of a um
object.
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.