Auto.Q: Automatic Portmanteau Test

Description Usage Arguments Value Author(s) References Examples

View source: R/Auto.Q.R

Description

A robustified portmanteau test with automatic lag selection

Usage

1
Auto.Q(y,lags)

Arguments

y

financial return time series

lags

maximum lag value, the default is 10

Value

Stat

Automatic portmanteau test statistic

Pvalue

p-value of the test

Author(s)

Jae H. Kim

References

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, in press.

Examples

1
2
3
4
5
data(exrates)
y <- exrates$ca                          
nob <- length(y)
r <- log(y[2:nob])-log(y[1:(nob-1)])    
Auto.Q(r)

Example output

$Stat
[1] 4.207742

$Pvalue
[1] 0.04023987

vrtest documentation built on May 1, 2019, 6:30 p.m.