This function computes estimate a Hidden Markov model using MLE.
HMmdl_mle(theta_0, mdl_in, k, optim_options)List with model attributes
vector containing initial values to use in optimization
List with model properties (can be obtained from estimating linear model i.e., using ARmdl)
integer determining the number of regimes
List containing
maxit: maximum number of iterations.
thtol: convergence criterion.