View source: R/realizedMeasures.R
rHYCov | R Documentation |
Calculates the Hayashi-Yoshida Covariance estimator
rHYCov(
rData,
cor = FALSE,
period = 1,
alignBy = "seconds",
alignPeriod = 1,
makeReturns = FALSE,
makePsd = TRUE,
...
)
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. |
Scott Payseur and Emil Sjoerup.
Hayashi, T. and Yoshida, N. (2005). On covariance estimation of non-synchronously observed diffusion processes. Bernoulli, 11, 359-379.
ICov
for a list of implemented estimators of the integrated covariance.
library("xts")
hy <- rHYCov(rData = as.xts(sampleOneMinuteData)["2001-08-05"],
period = 5, alignBy = "minutes", alignPeriod = 5, makeReturns = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.