Debian Codegraph @

tests/kalman_skewed/ireland2004_model.inc

raw
1 % Small scale New Keynesian model of Ireland (2004): "Technology Shocks in
2 % The New Keynesian Model", The Review of Economics and Statistics, based
3 % on Dynare replication codes kindly provided by Johannes Pfeifer at
4 % https://github.com/JohannesPfeifer/DSGE_mod/tree/master/Ireland_2004
5 % -------------------------------------------------------------------------
6
7 % Copyright © 2025 Dynare Team
8 %
9 % This file is part of Dynare.
10 %
11 % Dynare is free software: you can redistribute it and/or modify
12 % it under the terms of the GNU General Public License as published by
13 % the Free Software Foundation, either version 3 of the License, or
14 % (at your option) any later version.
15 %
16 % Dynare is distributed in the hope that it will be useful,
17 % but WITHOUT ANY WARRANTY; without even the implied warranty of
18 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 % GNU General Public License for more details.
20 %
21 % You should have received a copy of the GNU General Public License
22 % along with Dynare. If not, see <https://www.gnu.org/licenses/>.
23
24 var
25 ahat ${\hat{a}}$ (long_name='preference shock')
26 ehat ${\hat{e}}$ (long_name='cost push shock')
27 zhat ${\hat{z}}$ (long_name='TFP shock')
28 xhat ${\hat{x}}$ (long_name='output gap')
29 pihat ${\hat{\pi}}$ (long_name='inflation deviation from trend')
30 yhat ${\hat{y}}$ (long_name='output deviations from trend')
31 ghat ${\hat{g}}$ (long_name='output growth')
32 rhat ${\hat{r}}$ (long_name='interest deviations from trend')
33 ;
34
35 varobs ghat rhat pihat;
36
37 varexo
38 eta_a ${\varepsilon_a}$ (long_name='preference innovation')
39 eta_e ${\varepsilon_e}$ (long_name='(negative) cost push innovation')
40 eta_z ${\varepsilon_z}$ (long_name='TFP innovation')
41 eta_r ${\varepsilon_r}$ (long_name='monetary policy innovation')
42 ;
43
44 parameters
45 BETA ${\beta}$ (long_name='discount factor')
46 PSI ${\psi}$ (long_name='output gap coefficient in Phillips curve')
47 ALPHA_PI ${\alpha_{\pi}}$ (long_name='slope parameter in Phillips curve')
48 ALPHA_X ${\alpha_{x}}$ (long_name='slope parameter in IS curve')
49 RHO_A ${\rho_{a}}$ (long_name='persistence preference shock')
50 RHO_E ${\rho_{e}}$ (long_name='persistence (negative) cost-push shock')
51 OMEGA ${\omega}$ (long_name='scale parameter preference innovation in IS curve')
52 RHO_PI ${\rho_{\pi}}$ (long_name='feedback policy rule inflation')
53 RHO_G ${\rho_{g}}$ (long_name='feedback policy rule output growth')
54 RHO_X ${\rho_{x}}$ (long_name='feedback policy rule output gap')
55 SIGN_SHOCKS
56 ;
57
58 BETA = 0.99;
59 PSI = 0.1;
60 ALPHA_X = 0;
61 ALPHA_PI = 0;
62 SIGN_SHOCKS = 1;
63
64 model;
65 [name='temporary preference shock (15)']
66 ahat = RHO_A*ahat(-1) + SIGN_SHOCKS*eta_a/100;
67 [name='temporary cost-push shock (16)']
68 ehat = RHO_E*ehat(-1) + SIGN_SHOCKS*eta_e/100;
69 [name='technology shock (17)']
70 zhat = SIGN_SHOCKS*eta_z/100;
71 [name='New Keynesian IS curve (23)']
72 xhat = ALPHA_X*xhat(-1) + (1-ALPHA_X)*xhat(+1) - (rhat-pihat(+1)) + (1-OMEGA)*(1-RHO_A)*ahat;
73 [name='New Keynesian PC curve (24)']
74 pihat = BETA * ( ALPHA_PI*pihat(-1) + (1-ALPHA_PI)*pihat(+1) ) + PSI*xhat - ehat;
75 [name='output gap (20)']
76 xhat = yhat - OMEGA*ahat;
77 [name='growth rate of output (21)']
78 ghat = yhat - yhat(-1) + zhat;
79 [name='policy rule (22)']
80 rhat - rhat(-1) = RHO_PI*pihat + RHO_G*ghat + RHO_X*xhat + SIGN_SHOCKS*eta_r/100;
81 end;
82
83 steady_state_model;
84 ahat = 0; ehat = 0; zhat = 0; xhat = 0; pihat = 0; yhat = 0; ghat = 0; rhat = 0;
85 end;