the statistic will be based on 'lag' autocorrelation coefficients.
Tsay (p. 27-28) says, 'Simulation studies suggest that the choice of
[lag = log(length(x))] provides better power performance. This
general rule needs modification in analy
type
which Box.test 'type' should be used? Partial matching is used.
The 'rank' alternative computes 'Ljung-Box' on rank(x); see Burns
(2002) and references therein.
NOTE: The default 'Ljung-Box' type generally seems to be more
a
This is provided for compatibility with 'autocorTest' in the S-Plus
script in Tsay (p. 30). It is a wrapper for the R function
'Box.test'.
References
Ruey Tsay (2005) Analysis of Financial Time Series, 2nd ed. (Wiley)
Patrick Burns (2002) 'Robustness of the Ljung-Box Test and its Rank
Equivalent',
http://www.burns-stat.com/pages/Working/ljungbox.pdf, accessed
2007.12.29.