Chen.Deo {vrtest} | R Documentation |
See equation (15) of Chen and Deo (2006)
Chen.Deo(x, kvec)
x |
a vector of time series, typically financial return |
kvec |
a vector of holding periods |
Holding.Period |
holding periods used |
VRsum |
the sum of (power transformed individual VR - 1) |
QPn |
QPn statistic |
ChiSQ.Quantiles_1_2_5_10_20_percent |
Chi-square critical values |
Jae H. Kim
Chen, W. W., and Deo, R.S., 2006, The Variance Ratio Statistic at Large Horizons, Econometric Theory, 22, 206-234.
data(exrates) y <- exrates$ca # read Canadian exchange rate nob <- length(y) r <- log(y[2:nob])-log(y[1:(nob-1)]) # log return calculation kvec <- c(2,5,10) Chen.Deo(r,kvec)