rHYCov {highfrequency} | R Documentation |
Hayashi-Yoshida covariance
Description
Calculates the Hayashi-Yoshida Covariance estimator
Usage
rHYCov(
rData,
cor = FALSE,
period = 1,
alignBy = "seconds",
alignPeriod = 1,
makeReturns = FALSE,
makePsd = TRUE,
...
)
Arguments
rData |
an |
cor |
boolean, in case it is |
period |
Sampling period |
alignBy |
character, indicating the time scale in which |
alignPeriod |
positive numeric, indicating the number of periods to aggregate over. For example, to aggregate
based on a 5-minute frequency, set |
makeReturns |
boolean, should be |
makePsd |
boolean, in case it is |
... |
used internally. Do not set. |
Author(s)
Scott Payseur and Emil Sjoerup.
References
Hayashi, T. and Yoshida, N. (2005). On covariance estimation of non-synchronously observed diffusion processes. Bernoulli, 11, 359-379.
See Also
ICov
for a list of implemented estimators of the integrated covariance.
Examples
library("xts")
hy <- rHYCov(rData = as.xts(sampleOneMinuteData)["2001-08-05"],
period = 5, alignBy = "minutes", alignPeriod = 5, makeReturns = TRUE)