lipj 发表于 2014-3-2 21:47
https://stat.ethz.ch/pipermail/r-help/2012-July/318233.html
> data("sample_5minprices_jumps");
> data = sample_5minprices_jumps[,1];
> data = makeReturns(data); #Get the high-frequency return data
> x = harModel(data, periods = c(1,5,10), periodsJ=c(1,5,10),
+ RVest = c("rCov","rBPCov"), type="HARRVCJ",
+ transform="sqrt");
> x
Model:
sqrt(RV1) = beta0 + beta1 * sqrt(C1) + beta2 * sqrt(C5) + beta3 * sqrt(C10)
+ beta4 * sqrt(J1) + beta5 * sqrt(J5) + beta6 * sqrt(J10)
Coefficients:
beta0 beta1 beta2 beta3 beta4 beta5
-0.8835 1.1957 -25.1922 38.9909 -0.4483 0.8084
beta6
-6.8305
r.squared adj.r.squared
0.9915 0.9661
这是package里的例子,sample_5minprices_jumps是package里自带的,我其实是想知道这个数据是怎么计算出来的,自己处理数据要怎么弄?