M step of the EM algorithm for fitting homogeneous Markov switching auto-regressive models, called in fit.MSAR.
Mstep.hh.MSAR(data, theta, FB,sigma.diag=FALSE,sigma.equal=FALSE)array of univariate or multivariate series with dimension T*N.samples*d. T: number of time steps of each sample, N.samples: number of realisations of the same stationary process, d: dimension.
model's parameter; object of class MSAR. See also init.theta.MSAR.
Forward-Backward results, obtained by calling Estep.MSAR function
If sigma.diag==TRUE the estimated covariance of the innovation will be diagonal (default is FALSE) - available only for HH models
If sigma.equal==TRUE the estimated covariance of the innovation will be the same in all regimes - available only for models with homogeneous emission probabilities (default is FALSE)
A list containing
intercepts
AR coefficients
variance of innovation
prior probabilities
transition matrix
Ailliot P., Monbet V., (2012), Markov switching autoregressive models for wind time series. Environmental Modelling & Software, 30, pp 92-101.
fit.MSAR, Estep.MSAR, Mstep.classif