I have been trying to fit a Markov Switching Regime model using epoch timestamps as my x-axis and I keep receiving this error:
ValueError: On entry to DLASCL parameter number 5 had an illegal value
This error occurs after I fit the model when I try to call the .summary()
Also, during the model fit I get the following convergence warning:
ConvergenceWarning: Maximum Likelihood optimization failed to converge. Check mle_retvals
"Check mle_retvals", ConvergenceWarning)
I really have no clue what is the issue as I have no missing values and all my data is normally distributed. I am using data from a pandas dataframe but I am converting them to numpy arrays before I fit as well. I also tried converting my unix timestamps to datetime objects, time objects, and nothing worked.
What is statsmodels expecting here as an input?