Learn R Programming

rumidas (version 0.1.3)

DAGM_long_run_vol_no_skew: DAGM (daily) long-run volatility (no skewness)

Description

Obtains the daily long-run volatility for the DAGM. For details, see amendola_candila_gallo:2019;textualrumidas.

Usage

DAGM_long_run_vol_no_skew(param, daily_ret, mv_m, K, lag_fun = "Beta")

Value

The resulting vector is an "xts" object representing the long-run volatility.

Arguments

param

Vector of estimated values. It must be a seven- or eight- dimensional vector. See the examples below.

daily_ret

Daily returns, which must be an "xts" object.

mv_m

MIDAS variable already transformed into a matrix, through mv_into_mat function.

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.

References

See Also

mv_into_mat.

Examples

Run this code
# est_val<-c(0.01,0.80,0,0.1,1.1,-0.3,1.1)
# r_t<-sp500['/2010']
# mv_m<-mv_into_mat(r_t,diff(indpro),K=12,"monthly")
# head(DAGM_long_run_vol_no_skew(est_val,r_t,mv_m,K=12))

Run the code above in your browser using DataLab