Skip to content

Instantly share code, notes, and snippets.

@ChadFulton
Last active March 27, 2019 15:40
Show Gist options
  • Save ChadFulton/fac61cc2b2cb07eddfa3e87babb6e9cc to your computer and use it in GitHub Desktop.
Save ChadFulton/fac61cc2b2cb07eddfa3e87babb6e9cc to your computer and use it in GitHub Desktop.
Different types of SARIMAX
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bobbejaan
Copy link

I get the following error:
ValueError: Invalid state space initialization method.
I guess it is caused by:
super(AR1X, self).__init__(endog, k_states=1, exog=exog, initialization='diffuse')

The following does work:
super(AR1X, self).__init__(endog, k_states=1, exog=exog, initialization='approximate_diffuse')

@ChadFulton
Copy link
Author

Ah, yes, for diffuse you need the version of Statsmodels in master, but approximate_diffuse will work in v0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment