Skip to content
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

BUG: SARIMAX dates if simple_differencing=True #2940

Merged
merged 3 commits into from May 13, 2016

Conversation

ChadFulton
Copy link
Member

Fixes the problem with incorrect prediction index - and more generally with incorrect values in self.data.dates - when simple_differencing=True.

See #2939 for the bug report.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 85.409% when pulling 3b824ee on ChadFulton:gh-2939 into de15ec8 on statsmodels:master.

assert_equal(pred.index.values, index[1:-1].values)
# Out-of-sample forecasting should still extend the index appropriately
fcast = res.forecast()
assert_equal(fcast.index[0], index[-1])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor formatting issue. git/python wants a module to end with a newline

@josef-pkt
Copy link
Member

looks good to me, merge?

@ChadFulton
Copy link
Member Author

I added another test where I use seasonal differencing also, and added a newline. It should pass, and if it does it's good to merge.

Thanks @TomAugspurger

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 85.413% when pulling 941e2fb on ChadFulton:gh-2939 into de15ec8 on statsmodels:master.

@ChadFulton ChadFulton merged commit fd90132 into statsmodels:master May 13, 2016
@josef-pkt josef-pkt added this to the 0.8 milestone Jun 11, 2016
@ChadFulton ChadFulton deleted the gh-2939 branch July 16, 2016 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants