Skip to Content

Subsample.test {vrtest}

Subsampling test of Whang and Kim (2003)
Package: 
vrtest
Version: 
0.95

Description

The function returns the p-values of the subsampling test.

Usage

Subsample.test(y, kvec)

Arguments

y
a vector of time series, typically financial return
kvec
a vector of holding periods

Details

The block lengths are chosen internally using the rule proposed in Whang and Kim (2003)

Values

Holding.Period
holding periods used
Block.Length
block lengths chosen
pval
p-values of the test for each block length used

References

WHANG,Y.-J., J. KIM, 2003, A Multiple Variance Ratio Test Using Subsampling, Economics Letters, 79, 225-230.

Examples

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)
Subsample.test(r,kvec)

Author(s)

Jae H. Kim

Documentation reproduced from package vrtest, version 0.95. License: GPL (>= 2)