
Last chance! 50% off unlimited learning
Sale ends in
Function returns the Realized Covariation (rCov).
Let
Then, the rCov is given by
rCov(
rdata,
cor = FALSE,
align.by = NULL,
align.period = NULL,
makeReturns = FALSE
)
a
boolean, in case it is TRUE, the correlation is returned. FALSE by default.
a string, align the tick data to "seconds"|"minutes"|"hours".
an integer, align the tick data to this many [seconds|minutes|hours].
boolean, should be TRUE when rdata contains prices instead of returns. FALSE by default.
an
# NOT RUN {
# Realized Variance/Covariance for prices aligned
# at 5 minutes.
data(sample_tdata)
data(sample_5minprices_jumps)
# Univariate:
rv = rCov(rdata = sample_tdata$PRICE, align.by = "minutes",
align.period = 5, makeReturns = TRUE)
rv
# Multivariate:
rc = rCov(rdata = sample_5minprices_jumps['2010-01-04'], makeReturns=TRUE)
rc
# }
Run the code above in your browser using DataLab