| 1 |
var R Pie Y; |
| 2 |
|
| 3 |
varobs Y Pie R; |
| 4 |
|
| 5 |
svar_identification; |
| 6 |
lower_cholesky; |
| 7 |
end; |
| 8 |
|
| 9 |
markov_switching(chain=1,number_of_regimes=2,duration=2.5); |
| 10 |
|
| 11 |
svar(variances, chain=1); |
| 12 |
|
| 13 |
set_dynare_seed(5); |
| 14 |
|
| 15 |
ms_estimation(datafile=msdata |
| 16 |
,freq=4 |
| 17 |
,initial_year=1959 |
| 18 |
,final_year=2005 |
| 19 |
,nlags=4 |
| 20 |
,max_repeated_optimization_runs=1 |
| 21 |
,max_number_of_stages=0 |
| 22 |
); |
| 23 |
ms_simulation(mh_replic=1000); |
| 24 |
ms_compute_mdd; |
| 25 |
ms_compute_probabilities; |
| 26 |
ms_irf(parameter_uncertainty); |
| 27 |
ms_forecast; |
| 28 |
ms_variance_decomposition(no_error_bands); |