New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sm.stats.acorr_ljungbox(res.wresid) needs helpful return #286
Comments
Box and Jenkins recommends that the lag be long enough so that the 'weights' go to zero. I think where w_t = \phi^{-1}(B)\theta(B)a_t=\psi(B)a_t In any event, in the examples I've seen the Q-stat is either never significant blows up at higher lag-lengths so it's obvious there are problems. I think stata's default is 40 as with the other corrgram type functions. |
Not a release blocker. |
some links from the answer " Stata uses min(n/2 − 2, 40) http://www.stata.com/manuals13/tswntestq.pdf It looks like in R the default number of lags depends on which package is used. This http://www.r-bloggers.com/story-of-the-ljung-box-blues-progress-not-perfection/ shows a similar pattern of p-values decreasing with lag length. |
docstring is wrong: maxlag is hardcoded at 41, but docstring has copy paste error |
Move to return a DataFrame in the future Reduce lags to agree with Hyndaman closes statsmodels#286 xref statsmodels#3381
Move to return a DataFrame in the future Reduce lags to agree with Hyndaman closes statsmodels#286 xref statsmodels#3381
Move to return a DataFrame in the future Reduce lags to agree with Hyndaman closes statsmodels#286 xref statsmodels#3381
Move to return a DataFrame in the future Reduce lags to agree with Hyndaman closes statsmodels#286 xref statsmodels#3381
Move to return a DataFrame in the future Reduce lags to agree with Hyndaman closes statsmodels#286 xref statsmodels#3381
sm.stats.acorr_ljungbox returns the values for all lags, this can be difficult to interpret.
A recommended answer would be easier to interpret. What's the recommended lag to look at?
Also acorr_ljungbox or similar should be added to summary() as more powerful alternative to Durbin-Watson, (DW doesn't have p-value)
The text was updated successfully, but these errors were encountered: