multi_step_ahead_pred | R Documentation |
Calculates the multi–step–ahead predictions for the GARCH–MIDAS and DAGM models, according to the procedure suggested by \insertCiteamendola_candila_gallo_2020;textualrumidas.
multi_step_ahead_pred(est, h, X = NULL)
est |
The estimation object as resulting by the |
h |
The length of the multi-step-ahead predictions |
X |
optional. The '–X' variable. NULL by default. It hat to be equal to the 'X' used in the |
The multi–step–ahead procedure calculates the volatility predictions keeping fixed the information set at the last
observation available and projecting forward the forecasts. The procedure calculates the volatility predictions conditionally
to the parameters estimated in the in-sample period. Therefore, the estimation object (through the ugmfit
function)
has to be provided. For additional details, see Eq. (20) in \insertCiteamendola_candila_gallo_2020;textualrumidas.
The multi-step-ahead predictions, for the following h days, starting from the last day of the chosen in-sample period adopted in the 'est' object.
r_t<-sp500['2008']
X<-(rv5['2008'])^0.5
mv_m<-mv_into_mat(r_t,diff(indpro),K=12,"monthly")
fit<-ugmfit(model="GMX",skew="YES",distribution="norm",r_t,mv_m,K=12,X=X)
### ten days predictions
multi_step_ahead_pred(fit,h=10,X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.