Description Usage Arguments Value Examples
View source: R/directforecast.R
Function to obtain h-step ahead direct forecast based on estimated VAR, VARX or VARMA model
1 | directforecast(fit, model, h = 1)
|
fit |
Fitted sparse VAR, VARX or VARMA model. |
model |
Type of model that was estimated: VAR, VARX or VARMA. |
h |
Desired forecast horizon. |
Vector of length k containing the h-step ahead forecasts for the k time series.
1 2 3 | data(Y)
VARfit <- sparseVAR(Y) # sparse VAR
VARforecast <- directforecast(fit=VARfit, model="VAR", h=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.