i use ms_irf(regimes) to get IRF of 2 regimes ,
i modify the last two rows in DH10.mod (http://www.dynare.org/DynareWiki/example_swz) :
ms_variance_decomposition(regimes);
ms_irf(regimes);
i use matlab 2012a and dynare 4.3.2 in win 7 X64.
ms_variance_decomposition(regimes) is completed .
but the ms_irf(regimes); occur the errors message:
MS-SBVAR Impulse Response Function
Largest root at posterior mode regime[0]: 0.999992
Largest root at posterior mode regime[1]: 1.000182
Neither coef nor var process specified
Error in MS-SBVAR MEX file.
Error using mexErrCheck (line 41)
Error encountered in: ms_irf.
Error in ms_irf (line 81)
mexErrCheck('ms_irf',err);
Error in DH10 (line 81)
[options_, oo_] = ms_irf(var_list_,M_, options_, oo_);
Error in dynare (line 120)
evalin('base',fname) ;
thanks!