Computes predictions for an object of class NAWRUfit, TFPfit
, or
KuttnerFit
estimated via MLE or Bayesian methods (objects of class fit
).
# S3 method for fit
predict(object, n.ahead = 10, exogenous = "mean", returnFit = TRUE, ...)
The fitted object with an updated time series list tsl
. If
returnFit = FALSE
, only the updated time series list is returned.
An object of class NAWRUfit
, TFPfit
, or KuttnerFit
(objects of class fit
).
An integer specifying the prediction horizon.
A character string specifying the computation of exogenous variables
included in the model (if applicable). Valid options are exogenous = "mean"
and
exogenous = "last".
A logical. If TRUE
, an object of the same class as fit
where the list entry tsl
is replaced. If FALSE
, only the new time series
list is returned.
Ignored.