| 1 |
var white_noise ar1 junk; |
| 2 |
varexo e; |
| 3 |
|
| 4 |
parameters phi; |
| 5 |
|
| 6 |
phi=1; |
| 7 |
|
| 8 |
model; |
| 9 |
white_noise=e; |
| 10 |
ar1=phi*ar1(-1)+e; |
| 11 |
junk=0.9*junk(+1); |
| 12 |
end; |
| 13 |
|
| 14 |
steady_state_model; |
| 15 |
white_noise=0; |
| 16 |
ar1=0; |
| 17 |
junk=0; |
| 18 |
end; |
| 19 |
|
| 20 |
shocks; |
| 21 |
var e = 1; |
| 22 |
end; |
| 23 |
|
| 24 |
options_.qz_criterium=1+1e-6; |
| 25 |
stoch_simul(order=1); |
| 26 |
|
| 27 |
options_.qz_criterium=1-1e-6; |
| 28 |
error_indicator=0; |
| 29 |
try |
| 30 |
info=stoch_simul(var_list_) |
| 31 |
error_indicator=1 |
| 32 |
catch |
| 33 |
|
| 34 |
end |
| 35 |
if error_indicator |
| 36 |
error('qz_criterion did not work') |
| 37 |
end |