| 1 |
/* |
| 2 |
* This file is a modified version of 'fs2000.mod'. |
| 3 |
* |
| 4 |
* The difference is that, here, the equations are written in non-stationary form, |
| 5 |
* all variables are taken in logs, and Dynare automatically does the detrending. |
| 6 |
* |
| 7 |
* Also note that "m" and "dA" in 'fs2000.mod' are here called "gM" and "gA" |
| 8 |
*/ |
| 9 |
|
| 10 |
/* |
| 11 |
* Copyright © 2004-2013 Dynare Team |
| 12 |
* |
| 13 |
* This file is part of Dynare. |
| 14 |
* |
| 15 |
* Dynare is free software: you can redistribute it and/or modify |
| 16 |
* it under the terms of the GNU General Public License as published by |
| 17 |
* the Free Software Foundation, either version 3 of the License, or |
| 18 |
* (at your option) any later version. |
| 19 |
* |
| 20 |
* Dynare is distributed in the hope that it will be useful, |
| 21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 |
* GNU General Public License for more details. |
| 24 |
* |
| 25 |
* You should have received a copy of the GNU General Public License |
| 26 |
* along with Dynare. If not, see <https://www.gnu.org/licenses/>. |
| 27 |
*/ |
| 28 |
|
| 29 |
var gM gA; |
| 30 |
log_trend_var(log_growth_factor=gA) A; |
| 31 |
log_trend_var(log_growth_factor=gM) M; |
| 32 |
var(log_deflator=A) k c y; |
| 33 |
var(log_deflator=M(-1)-A) P; |
| 34 |
var(log_deflator=M(-1)) W l d; |
| 35 |
var R n; |
| 36 |
varexo e_a e_m; |
| 37 |
|
| 38 |
parameters alp bet gam mst rho psi del; |
| 39 |
|
| 40 |
alp = 0.33; |
| 41 |
bet = 0.99; |
| 42 |
gam = 0.003; |
| 43 |
mst = 1.011; |
| 44 |
rho = 0.7; |
| 45 |
psi = 0.787; |
| 46 |
del = 0.02; |
| 47 |
|
| 48 |
model; |
| 49 |
gA = gam+e_a; |
| 50 |
gM = (1-rho)*log(mst) + rho*gM(-1)+e_m; |
| 51 |
exp(c)+exp(k) = exp(k(-1))^alp*(exp(A)*exp(n))^(1-alp)+(1-del)*exp(k(-1)); |
| 52 |
P+c = M; |
| 53 |
P-(c(+1)+P(+1))=log(bet)+P(+1)+log(alp*exp(k)^(alp-1)*(exp(A(+1)+n(+1)))^(1-alp)+(1-del))-(c(+2)+P(+2)); |
| 54 |
log(psi/(1-psi))+(c+P-log(1-exp(n)))=W; |
| 55 |
R = P+log(1-alp)+alp*k(-1)+(1-alp)*A+(-alp)*n-W; |
| 56 |
W = l-n; |
| 57 |
exp(M)-exp(M(-1))+exp(d) = exp(l); |
| 58 |
-(c+P)=log(bet)+R-(c(+1)+P(+1)); |
| 59 |
y = alp*k(-1)+(1-alp)*(A+n); |
| 60 |
end; |
| 61 |
|
| 62 |
initval; |
| 63 |
k = log(6); |
| 64 |
gM = log(mst); |
| 65 |
P = log(2.25); |
| 66 |
c = log(0.45); |
| 67 |
W = log(4); |
| 68 |
R = log(1.02); |
| 69 |
d = log(0.85); |
| 70 |
n = log(0.19); |
| 71 |
l = log(0.86); |
| 72 |
y = log(0.6); |
| 73 |
gA = gam; |
| 74 |
end; |
| 75 |
|
| 76 |
shocks; |
| 77 |
var e_a; stderr 0.014; |
| 78 |
var e_m; stderr 0.005; |
| 79 |
end; |
| 80 |
|
| 81 |
steady; |
| 82 |
|
| 83 |
check; |
| 84 |
|
| 85 |
stoch_simul; |