View source: R/Subsample.test.R
Subsample.test | R Documentation |
The function returns the p-values of the subsampling test.
Subsample.test(y, kvec)
y |
a vector of time series, typically financial return |
kvec |
a vector of holding periods |
The block lengths are chosen internally using the rule proposed in Whang and Kim (2003)
Holding.Period |
holding periods used |
Block.Length |
block lengths chosen |
pval |
p-values of the test for each block length used |
Jae H. Kim
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.