Optionalemission"gaussian": each state emits a normal value with its own mean and variance; "ar1": each state emits an AR(1) step x_t = c + phi x_{t-1} + e with its own c, phi, and variance (Hamilton's Markov-switching AR(1)).
OptionalmaxLargest number of EM iterations per fit.
OptionalrefitSteps between fits. Between fits the model filters each new value with fixed parameters.
OptionaltolA fit stops when an EM iteration raises the log-likelihood by less than this.
OptionalwindowNumber of most recent values the model is fit on.
The settings of RollingHMM by name, for
RollingHMM({ ... }).