Learn R Programming

highfrequency (version 0.7.0.1)

rCholCov: rCholCov positive semi-definite covariance estimation using the CholCov algorithm

Description

Function that estimates the integrated covariance matrix using the CholCov algorithm. The algorithm estimates the integrated covariance matrix by sequentially adding series and using `refreshTime` to synchronize the observations. This is done in order of liquidity, which means that the algorithm uses more data points than most other estimation techniques.

Usage

rCholCov(
  pData,
  IVest = "MRC",
  COVest = "MRC",
  criterion = "squared duration",
  ...
)

Arguments

pData

a list. Each list-item i contains an xts object with the intraday price data of stock i for day t. The order of the data does not matter as it will be sorted according to the criterion specified in the criterion argument

IVest

integrated variance estimator, default is "MRC". For a list of implemented estimators, use listCholCovEstimators().

COVest

covariance estimator, default is "MRC". For a list of implemented estimators, use listCholCovEstimators().

criterion

criterion to use for sorting the data according to liquidity. Possible values are ["squared duration"|"duration"|"count"], defaults to "squared duration".

...

additional arguments to pass to IVest and COVest. See details.

Value

a list containing the covariance matrix "CholCov", and the Cholesky decomposition "L" and "G" such that L * G * L' = CholCov

Details

additional arguments for IVest and COVest should be passed in the ... argument. For the MRC estimator, which is the default, the theta and delta parameters can be set. These default to 1 and 0.1 respectively.

References

Boudt, Laurent, Lunde, Quaedvlieg, Sauri(2017) Positive semidefinite integrated covariance estimation, factorizations and asynchronicity. Journal of Econometrics 196, 347-367