powered by
The function returns the p-values of the subsampling test.
Subsample.test(y, kvec)
holding periods used
block lengths chosen
p-values of the test for each block length used
a vector of time series, typically financial return
a vector of holding periods
Jae H. Kim
The block lengths are chosen internally using the rule proposed in Whang and Kim (2003)
WHANG,Y.-J., J. KIM, 2003, A Multiple Variance Ratio Test Using Subsampling, Economics Letters, 79, 225-230.
data(exrates) y <- exrates$ca nob <- length(y) r <- log(y[2:nob])-log(y[1:(nob-1)]) kvec <- c(2,5,10) Subsample.test(r,kvec)
Run the code above in your browser using DataLab