onlineVAR (version 0.1-1)

predict.onlineVAR: Predictions for onlineVAR Models

Description

Obtains predictions for onlineVAR models.

Usage

# S3 method for onlineVAR
predict(object, newdata, s = NULL, …)

Arguments

object

An object of class "onlineVAR".

newdata

Optional time series data to predict. If supplied, predictions are derived with coefficients from the last time step that was used for fitting object

s

Optional index specifying which lambda in the lambda.ratio sequence to use for prediction.

Required for S3 compatibility.

Value

Time series matrix of predictions of the same size as the input data used for model fitting or, if supplied, of the same size as newdata.

Details

By default, predictions derived during the online fitting are returned. By specifying newdata predictions for a new time series are generated with coefficient estimates from the last time step of the online fitting.

See Also

onlineVAR