# NOT RUN {
# Realized Variance/Covariance for prices aligned
# at 5 minutes.
data(sampleTData)
data(sample5MinPricesJumps)
# Univariate:
rv = rCov(rData = sampleTData$PRICE, alignBy = "minutes",
alignPeriod = 5, makeReturns = TRUE)
rv
# Multivariate:
rc = rCov(rData = sample5MinPricesJumps['2010-01-04'], makeReturns=TRUE)
rc
# }
Run the code above in your browser using DataLab