powered by
Obtains the estimated conditional volatility for the GARCH-MIDAS model, without the skewness parameter in the short--run. For details, see engle_ghysels_sohn_2013;textualrumidas and conrad_lock_2015;textualrumidas.
GM_cond_vol_no_skew(param, daily_ret, mv_m, K, lag_fun = "Beta")
The resulting vector is an "xts" object representing the conditional volatility.
Vector of estimated values.
Daily returns, which must be an "xts" object.
MIDAS variable already transformed into a matrix, through mv_into_mat function.
mv_into_mat
Number of (lagged) realizations of the MIDAS variable to consider.
optional. Lag function to use. Valid choices are "Beta" (by default) and "Almon", for the Beta and Exponential Almon lag functions, respectively.
mv_into_mat.
# \donttest{ est_val<-c(alpha=0.01,beta=0.8,m=2,theta=0.1,w2=2) r_t<-sp500['/2010'] mv_m<-mv_into_mat(r_t,diff(indpro),K=12,"monthly") head(GM_cond_vol_no_skew(est_val,r_t,mv_m,K=12)) # }
Run the code above in your browser using DataLab