Closed mihneagiurgea closed 10 years ago
In that code from master, fittedvalues is always defined.
The else was recently fixed https://github.com/statsmodels/statsmodels/commit/1c15e82b4152ea53f096225255737cd1e582306a#diff-c46cce4ad3d34e501b159ad412567dc1L288
I get 'fittedvalues' referenced before assignment with 0.5.0
needs a check whether we have a fix for 0.5.1
Forget about 0.5.1:
ARMA(0,0) was not supported in 0.5 and earlier, only in master do we have the recent extension by Kevin. fixed in #1262 and #1370 AFAICS
I 'm not sure if 1370 also included ARIMA(0,1,0)
@mihneagiurgea can you try your examples with current master.
Yes, the current master fixes the error.
However, I wasn't able to install the master branch doe due to this error:
error: can't copy 'statsmodels/nonparametric/_smoothers_lowess.c': doesn't exist or not a regular file
Both python setup.py install and pip install yielded the same error.
I guess you don't have cython installed. Cython is required to build from source (and a c compiler).
In case you are on Windows, there are also nightly Windows binaries of master at http://statsmodels.sourceforge.net/binaries/
Thanks, I'll try installing with Cython.
When I try to run an ARIMA prediction I get an UnboundLocalError.
Code to reproduce:
Error traceback:
Paste from github code causing the error:
(taken from here: https://github.com/statsmodels/statsmodels/blob/master/statsmodels/tsa/arima_model.py#L287)