VAR Prediction
Computes the forecasts of a VAR model, the associated standard errors of forecasts and the mean squared errors of forecasts
VARpred(model, h = 1, orig = 0, Out.level = FALSE, output = TRUE)
model
: An output object of a VAR or refVAR commandh
: Forecast horizon, a positive integerorig
: Forecast origin. Default is zero meaning the forecast origin is the last data pointOut.level
: Boolean control for details of outputoutput
: Boolean control for printing forecast resultsComputes point forecasts and the associated variances of forecast errors
pred: Point predictions
se.err: Standard errors of the predictions
mse: Mean-square errors of the predictions
Tsay (2014, Chapter 2). Multivariate Time Series Analysis with R and Financial Applications. John Wiley. Hoboken, NJ.
Ruey S. Tsay
data("mts-examples",package="MTS") gdp=log(qgdp[,3:5]) zt=diffM(gdp) m1=VAR(zt,p=2) VARpred(m1,4)
Useful links