Auto.Q | R Documentation |
A robustified portmanteau test with automatic lag selection
Auto.Q(y,lags)
y |
financial return time series |
lags |
maximum lag value, the default is 10 |
Stat |
Automatic portmanteau test statistic |
Pvalue |
p-value of the test |
Jae H. Kim
Escanciano, J.C., Lobato, I.N. 2009a. An automatic portmanteau test for serial correlation. Journal of Econometrics 151, 140-149.
Charles, A. Darne, O. Kim, J.H. 2011, Small Sample Proeprties of Alternative Tests for Martingale Difference Hypothesis, Economics Letters, 110(2), 151-154.
data(exrates)
y <- exrates$ca
nob <- length(y)
r <- log(y[2:nob])-log(y[1:(nob-1)])
Auto.Q(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.