vrtest (version 0.97)

Auto.VR: Automatic Variance Ratio Test

Description

A variance ratio test with holding period value chosen by a data dependent procedure

Usage

Auto.VR(y)

Arguments

y
financial return time series

Value

stat
Automatic variance ratio test statistic
sum
1+ weighted sum of autocorrelation up to the optimal order

References

Choi, I. 1999, Testing the random walk hypothesis for real exchange rates Journal of Applied Econometrics, 14, 293-308.

Examples

Run this code
data(exrates)
y <- exrates$ca                           
nob <- length(y)
r <- log(y[2:nob])-log(y[1:(nob-1)])      
Auto.VR(r)

Run the code above in your browser using DataLab