VAR.FOR | R Documentation |
Generate point forecasts and prediction intervals
VAR.FOR(x, p, h, type = "const", alpha = 0.95)
x |
data matrix in column |
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 |
alpha |
100(1-alpha) percent prediction intervals |
Prediction Intervals are based on normal approximation
Intervals |
Prediction Intervals, out-of-sample and dynamic |
Forecast |
Point Forecasts, out-of-sample and dynamic |
alpha |
Probability Content of Prediction Interva;s |
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)
VAR.FOR(dat,p=2,h=10,type="const",alpha=0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.