
Depending on users' choices of estimator (realized covariance (RCOVestimator) and realized variance (RVestimator)), the function returns the realized beta, defined as the ratio between both.
The realized beta is given by
in which
rBeta(
rdata,
rindex,
RCOVestimator = "rCov",
RVestimator = "RV",
makeReturns = FALSE
)
a zoo/xts object containing all returns in period t for one asset.
a zoo/xts object containing return in period t for an index.
can be chosen among realized covariance estimators: rCov, rAVGCov, rBPCov, rHYCov, rKernelCov, rOWCov, rRTSCov, rThresholdCov and rTSCov. rCov by default.
can be chosen among realized variance estimators: RV, minRV and medRV. RV by default. In case of missing RVestimator, RCOVestimator function applying for rindex will be used.
boolean, should be TRUE when rdata contains prices instead of returns. FALSE by default.
numeric
Suppose there are
By default, the RCov is used and the realized beta coefficient is computed as:
(Barndorff & Shephard (2004)).
Note: It is worth to note that the function does not support to calculate for data of multiple days.
Barndorff-Nielsen, O. E., & Shephard, N. (2004). Econometric analysis of realized covariation: High frequency based covariance, regression, and correlation in #' financial economics. Econometrica, 72(3), 885-925.
# NOT RUN {
a <- sample_5minprices_jumps['2010-01-04', 1]
b <- sample_5minprices_jumps['2010-01-04', 2]
rBeta(a, b, RCOVestimator = "rBPCov", RVestimator = "minRV", makeReturns = TRUE)
# }
Run the code above in your browser using DataLab