rcov {starvars} | R Documentation |
Realized Covariance
Description
Function returns the vectorization of the lowest triangular of the Realized Covariance matrices for different frequencies.
Usage
rcov(
data,
freq = c("daily", "monthly", "quarterly", "yearly"),
make.ret = TRUE,
cholesky = FALSE
)
Arguments
data |
a |
freq |
a string defining the desired frequency for the Realized Covariance matrices between "daily", "monthly", "quarterly" or "yearly" |
make.ret |
boolean, in case it is |
cholesky |
boolean, in case it is |
Value
Realized Covariances |
a |
Cholesky Factors (optional) |
a |
returns (optional) |
a |
Author(s)
Andrea Bucci
References
Andersen T.G., Bollerslev T., Diebold F.X. and Labys P. (2003), Modeling and Forecasting Realized Volatility. Econometrica. 71: 579-625
Barndorff-Nielsen O.E. and Shephard N. (2002), Econometric analysis of realised volatility and its use in estimating stochastic volatility models Journal of the Royal Statistical Society. 64(2): 253-280
Examples
data(Sample5minutes)
rc <- rcov(Sample5minutes, freq = 'daily', cholesky = TRUE, make.ret = TRUE)
print(rc)