Skip to content
Advertisement

Initialising Model in Python’s statsmodels

I am having difficulties understanding how to initialise an empty as well as as a known initial config model in statsmodels, here imported as

JavaScript
JavaScript

I get the following error:

JavaScript

I have has similar experiences with the method:

JavaScript

On the User Guide, it does not give any inputs to this method so I do not know the syntax needed to initialise an empty model.

Guide:

  1. https://www.statsmodels.org/stable/generated/statsmodels.tsa.regime_switching.markov_autoregression.MarkovAutoregression.initialize_known.html#statsmodels.tsa.regime_switching.markov_autoregression.MarkovAutoregression.initialize_known

  2. https://www.statsmodels.org/stable/generated/statsmodels.tsa.regime_switching.markov_autoregression.MarkovAutoregression.initialize.html#statsmodels.tsa.regime_switching.markov_autoregression.MarkovAutoregression.initialize

Advertisement

Answer

initialize_known is not a class method. You can call it like: SWARCH_model.initialize_known(…)

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement