Estimate Hidden Markov model by EM algorithm. This function is used by HMmdl
which organizes the output and takes raw data as input.
HMmdl_em(theta_0, mdl, k, optim_options)
List with model results.
vector with initial values for parameters.
List with model attributes.
Integer determining the number of regimes.
List with optimization options.
Dempster, A. P., N. M. Laird, and D. B. Rubin. 1977. “Maximum Likelihood from Incomplete Data via the EM Algorithm.” Journal of the Royal Statistical Society. Series B 39 (1): 1–38.