Create discrete-time Markov chain - MATLAB
www.mathworks.com › help › econTo estimate the transition probabilities of the switching mechanism, you must supply a dtmc model with an unknown transition matrix entries to the msVAR framework. Create a 4-regime Markov chain with an unknown transition matrix (all NaN entries). Specify the regime names. P = nan (4); statenames = [ "Depression" "Recession" ...