powered by
Generate point forecasts using the estimated VAR coefficient matrix
VAR.Fore(x, b, p, h, type = "const")
Point Forecasts, out-of-sample and dynamic
data matrix in column
matrix of coefficients from VAR.est or VAR.Rest
VAR order
Forecasting Periods
"const" for the AR model with intercept only, "const+trend" for the AR model with intercept and trend
Jae H. Kim
Lutkepohl, H. 2005, New Introduction to Multiple Time Series Analysis, Springer
#replicating Section 3.5.3 of Lutkepohl (2005) data(dat) b=VAR.est(dat,p=2,type="const")$coef VAR.Fore(dat,b,p=2,h=10,type="const")
Run the code above in your browser using DataLab