View source: R/midas_functions.R
GM_X_long_run_vol_no_skew | R Documentation |
Obtains the daily long-run volatility for the GARCH-MIDAS-X model, without the skewness parameter in the short–run. For details, see \insertCiteengle_ghysels_sohn_2013;textualrumidas and \insertCiteconrad_lock_2015;textualrumidas.
GM_X_long_run_vol_no_skew(param, daily_ret, X, mv_m, K, lag_fun = "Beta")
param |
Vector of estimated values. |
daily_ret |
Daily returns, which must be an "xts" object. |
X |
Additional "X" variable, which must be an "xts" object. Morever, "X" must be observed for the same days of daily_ret. |
mv_m |
MIDAS variable already transformed into a matrix, through |
K |
Number of (lagged) realizations of the MIDAS variable to consider. |
lag_fun |
optional. Lag function to use. Valid choices are "Beta" (by default) and "Almon", for the Beta and Exponential Almon lag functions, respectively. |
The resulting vector is an "xts" object representing the conditional volatility.
mv_into_mat
.
est_val<-c(alpha=0.01,beta=0.8,z=0.1,m=2,theta=0.1,w2=2)
r_t<-sp500['/2010']
X<-rv5['/2010']^0.5
mv_m<-mv_into_mat(r_t,diff(indpro),K=12,"monthly")
head(GM_X_long_run_vol_no_skew(est_val,r_t,X,mv_m,K=12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.