Arguments
data
array of univariate or multivariate series with dimension T x N.samples x d.
T: number of time steps of each sample, N.samples: number of realisations of the same stationary process, d: dimension.
theta
model's parameter; object of class MSAR. See also init.theta.MSAR.
FB
Forward-Backward results, obtained by calling Estep.MSAR function
lambda1
penalization constant for the precision matrices. It may be a scalar or a vector of length M (with M the number of regimes). If it is equal to0 no penalization is introduced for the precision matrices.
lambda2
penalization constant for the autoregressive matrices. It may be a scalar or a vector of length M (with M the number of regimes). If it is equal to0 no penalization is introduced for the atoregression matrices.
penalty
choice of the penalty for the autoregressive matrices. Possible values are ridge, lasso or SCAD (default).
par
allows to give an initial value to the precision matrices.