powered by
This function converts a transition matrix to the transition matrix consistent with a Markov-switching autoregressive model.
arP(P, k, ar)
transformed transition matrix.
original transition matrix.
integer determining the number of regimes.
number of autoregressive lags.