VAR.Fore | R Documentation |
Generate point forecasts using the estimated VAR coefficient matrix
VAR.Fore(x, b, p, h, type = "const")
x |
data matrix in column |
b |
matrix of coefficients from VAR.est or VAR.Rest |
p |
VAR order |
h |
Forecasting Periods |
type |
"const" for the AR model with intercept only, "const+trend" for the AR model with intercept and trend |
Generate point forecasts using the estimated VAR coefficient matrix
Fore |
Point Forecasts, out-of-sample and dynamic |
See Chapter 3 of Lutkepohl (2005)
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.