Learn R Programming

highfrequency (version 0.7.0.1)

rHYCov: 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

a possibly multivariate xts object.

cor

boolean, in case it is TRUE, the correlation is returned. FALSE by default.

period

Sampling period

alignBy

Align the tick data to seconds|minutes|hours

alignPeriod

Align the tick data to this many [seconds|minutes|hours]

makeReturns

Prices are passed make them into log returns

makePsd

boolean, in case it is TRUE, the positive definite version of rHYCov is returned. FALSE by default.

References

T. Hayashi and N. Yoshida. On covariance estimation of non-synchronously observed diffusion processes. Bernoulli, 11, 359-379, 2005.