Spec.shape | R Documentation |
Spectral Shape tests proposed by Durlauf (1991) and Choi (1999)
Spec.shape(x)
x |
financial return time series |
AD |
Anderson-Darling statistic |
CVM |
Cramer-von Mises statistic |
M |
Mellows statistic |
Traslated from Choi's Gauss codes
Jae H. Kim
Choi, I. 1999, Testing the random walk hypothesis for real exchange rates, Journal of Applied Econometrics, 14, 293-308. Durlauf, S. N., 1991, Spectral based testing of the martingale hypothesis, Journal of Econometrics, 50, 355-376.
data(exrates)
y <- exrates$ca
nob <- length(y)
r <- log(y[2:nob])-log(y[1:(nob-1)])
Spec.shape(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.