
Last chance! 50% off unlimited learning
Sale ends in
Function returns the minRV, defined in Andersen et al. (2009).
Let
Then, the minRV is given by
minRV(rdata, align.by = NULL, align.period = NULL, makeReturns = FALSE)
a zoo/xts object containing all returns in period t for one asset.
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.
numeric
Andersen, T. G., D. Dobrev, and E. Schaumburg (2012). Jump-robust volatility estimation using nearest neighbor truncation. Journal of Econometrics, 169 (1), 75-93.
# NOT RUN {
data(sample_tdata)
minrv <- minRV(rdata = sample_tdata$PRICE, align.by = "minutes",
align.period = 5, makeReturns = TRUE)
minrv
# }
Run the code above in your browser using DataLab