This function computes estimate a Markov-switching vector autoregressive model using MLE.
MSVARmdl_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 VARmdl)
integer determining the number of regimes
List containing
maxit: maximum number of iterations.
thtol: convergence criterion.