Description Usage Arguments Value Author(s) References Examples
View source: R/highfrequencyGSOC.R
Function returns the realized quad-power quarticity, defined in Huang and Tauchen (2005) and Andersen et al. (2012).
Assume there is N equispaced returns in period t. Let r_{t,i} be a return (with i=1, …,N) in period t.
Then, the rQPQuar is given by
\mbox{rQPQuar}_{t}=\frac{N^2}{N-3} ≤ft( 2^{1/2} \frac{Γ ≤ft(1 \right)}{ Γ ≤ft(1/2\right)} \right)^{-4} ∑_{i=4}^{N} \mbox({|r_{t,i}|} {|r_{t,i-1}|} {|r_{t,i-2}|} {|r_{t,i-3}|})
1 | rQPQuar (rdata, align.by=NULL, align.period=NULL, makeReturns=FALSE,...)
|
rdata |
a zoo/xts object containing all returns in period t for one asset. |
align.by |
a string, align the tick data to "seconds"|"minutes"|"hours" |
align.period |
an integer, align the tick data to this many [seconds|minutes|hours]. |
makeReturns |
boolean, should be TRUE when rdata contains prices instead of returns. FALSE by default. |
... |
additional arguments. |
numeric
Giang Nguyen, Jonathan Cornelissen and Kris Boudt
Andersen, T. G., D. Dobrev, and E. Schaumburg (2012). Jump-robust volatility estimation using nearest neighbor truncation. Journal of Econometrics, 169(1), 75- 93.
Huang, X. and Tauchen, G. (2005). The relative contribution of jumps to total price variance. Journal of Financial Econometrics, 3(4), 456-499.
1 2 3 | data(sample_tdata)
rQPQuar(rdata= sample_tdata$PRICE, align.by= "minutes", align.period =5, makeReturns= TRUE)
rQPQuar
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.