| 1 |
@#include "forward_looking_common.inc" |
| 2 |
|
| 3 |
PSI=1.1; |
| 4 |
TAU=2; |
| 5 |
BETA=0.9; |
| 6 |
KAPPA=0.6; |
| 7 |
|
| 8 |
steady; |
| 9 |
check; |
| 10 |
|
| 11 |
estimated_params; |
| 12 |
PSI, 1.1; |
| 13 |
TAU, 2; |
| 14 |
BETA, 0.9; |
| 15 |
KAPPA, 0.6; |
| 16 |
end; |
| 17 |
|
| 18 |
varobs r x p; |
| 19 |
identification; %this triggers sylvester3a with empty ghx |
| 20 |
|
| 21 |
% as a side note, we have the true solution: |
| 22 |
% [r;x;p] = TRUE_SOLUTION*[e_M;e_D;e_S] (ghx is empty) |
| 23 |
A = [1 0 -PSI; 1/TAU 1 0; 0 -KAPPA 1]; |
| 24 |
TRUE_SOLUTION1 = inv(A); |
| 25 |
TRUE_SOLUTION2 = 1/(KAPPA*PSI/TAU +1)*[1 KAPPA*PSI PSI; |
| 26 |
-1/TAU 1 -PSI/TAU; |
| 27 |
-KAPPA/TAU KAPPA 1]; |
| 28 |
% note that BETA drops out from the solution |
| 29 |
stoch_simul(order=1,noprint,irf=0,nomoments); |
| 30 |
if max(max(abs(TRUE_SOLUTION1 - oo_.dr.ghu))) > 1e-15 |
| 31 |
error('Something wrong with perturbation'); |
| 32 |
end |
| 33 |
if max(max(abs(TRUE_SOLUTION2 - oo_.dr.ghu))) > 1e-15 |
| 34 |
error('Something wrong with perturbation'); |
| 35 |
end |