by StephaneLhuissier » Fri Jan 10, 2014 3:23 pm
markov_switching(chain=1, number_of_regimes=2,duration=10);
markov_switching(chain=2, number_of_regimes=2,duration=10);
svar(coefficients, chain=1);
svar(variances, chain=2);
The first chain governs regime switches on coefficients, and the second chain (which is independent to the first one) governs regime switches on variance shocks. For more details, look at the Dynare manual.
For synchronized changes, you can do
markov_switching(chain=1, number_of_regimes=2,duration=10);
svar(coefficients, chain=1);
svar(variances, chain=1);