This function creates a grid of mean and variance consistent with a Markov-switching autoregressive model.
argrid_MSARmdl(mu, sig, k, ar, msmu, msvar)List with (M x ar+1) matrix of means for each regime M (where M = k^(ar+1)) and each time t,... t-ar, vector with variance for each regime M, and vector indicating the corresponded 1,..., k regime.
vector (k x 1) of mu in each regime.
vector (k x 1) of sigma in each regime.
integer determining the number of regimes.
number of autoregressive lags.
Boolean indicator. If TRUE mean is subject to change. If FALSE mean is constant across regimes.
Boolean indicator. If TRUE variance is subject to change. If FALSE variance is constant across regimes.