adfuller problem in autolag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
statsmodels |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
running tsa.stattools as a script shows that the call to autolag uses variables that are not defined
trying to fix it blindly doesn't work
from var import AR #move to top ?
fullRHS = xdall #JP: just guessing
lagstart = 1
icbest, bestlag = _autolag(AR, xdshort, fullRHS, lagstart,
raise ValueError(
ValueError: Exogenous variables are not supported for AR.
using
icbest, bestlag = _autolag(AR, xdshort, None, lagstart,
I get
results[lag] = mod_instance.
TypeError: fit() keywords must be strings
and adfuller should be renames
Hmm, this was working. I will fix it. Trying to generalize _autolag didn't end up working across models and I must not have changed it back.