| 1 |
% Forward-looking example model from Koop, Pesaran, Smith (2013, JBES) |
| 2 |
% created by Willi Mutschler (@wmutschl, [email protected]) |
| 3 |
% ========================================================================= |
| 4 |
% Copyright © 2020-2022 Dynare Team |
| 5 |
% |
| 6 |
% This file is part of Dynare. |
| 7 |
% |
| 8 |
% Dynare is free software: you can redistribute it and/or modify |
| 9 |
% it under the terms of the GNU General Public License as published by |
| 10 |
% the Free Software Foundation, either version 3 of the License, or |
| 11 |
% (at your option) any later version. |
| 12 |
% |
| 13 |
% Dynare is distributed in the hope that it will be useful, |
| 14 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
% GNU General Public License for more details. |
| 17 |
% |
| 18 |
% You should have received a copy of the GNU General Public License |
| 19 |
% along with Dynare. If not, see <https://www.gnu.org/licenses/>. |
| 20 |
% ========================================================================= |
| 21 |
var |
| 22 |
r ${r}$ (long_name='interest rate') |
| 23 |
x ${x}$ (long_name='output-gap') |
| 24 |
p ${\pi}$ (long_name='inflation') |
| 25 |
; |
| 26 |
varexo |
| 27 |
e_M ${\varepsilon^M}$ (long_name='monetary policy shock') |
| 28 |
e_D ${\varepsilon^D}$ (long_name='demand shock') |
| 29 |
e_S ${\varepsilon^S}$ (long_name='supply shock') |
| 30 |
; |
| 31 |
parameters |
| 32 |
PSI ${\psi}$ (long_name='inflation elasticity Taylor rule') |
| 33 |
TAU ${\tau}$ (long_name='intertemporal elasticity of subsitution') |
| 34 |
BETA ${\beta}$ (long_name='discount factor') |
| 35 |
KAPPA ${\kappa}$ (long_name='slope Phillips curve') |
| 36 |
; |
| 37 |
|
| 38 |
PSI = 1.1; |
| 39 |
TAU = 2; |
| 40 |
BETA = 0.9; |
| 41 |
KAPPA = 0.6; |
| 42 |
|
| 43 |
model; |
| 44 |
[name='Taylor rule'] |
| 45 |
r = PSI*p + e_M; |
| 46 |
[name='New Keynesian IS curve'] |
| 47 |
x = x(+1) - 1/TAU*(r-p(+1)) + e_D; |
| 48 |
[name='New Keynesian Phillips curve'] |
| 49 |
p = BETA*p(+1) + KAPPA*x + e_S; |
| 50 |
end; |
| 51 |
|
| 52 |
shocks; |
| 53 |
var e_M = 1; |
| 54 |
var e_D = 1; |
| 55 |
var e_S = 1; |
| 56 |
end; |