| 1 |
// Test for var(log, deflator=…) |
| 2 |
|
| 3 |
/* |
| 4 |
* Copyright © 2004-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 |
|
| 22 |
var gM gA; |
| 23 |
trend_var(growth_factor=gA) A; |
| 24 |
trend_var(growth_factor=gM) M; |
| 25 |
var(log, deflator=A) k c y; |
| 26 |
var(deflator=M(-1)/A) P; |
| 27 |
var(deflator=M(-1)) W l d; |
| 28 |
var R n; |
| 29 |
varexo e_a e_m; |
| 30 |
|
| 31 |
parameters alp bet gam mst rho psi del; |
| 32 |
|
| 33 |
alp = 0.33; |
| 34 |
bet = 0.99; |
| 35 |
gam = 0.003; |
| 36 |
mst = 1.011; |
| 37 |
rho = 0.7; |
| 38 |
psi = 0.787; |
| 39 |
del = 0.02; |
| 40 |
|
| 41 |
model; |
| 42 |
gA = exp(gam+e_a); |
| 43 |
log(gM) = (1-rho)*log(mst) + rho*log(gM(-1))+e_m; |
| 44 |
c+k = k(-1)^alp*(A*n)^(1-alp)+(1-del)*k(-1); |
| 45 |
P*c = M; |
| 46 |
P/(c(+1)*P(+1))=bet*P(+1)*(alp*k^(alp-1)*(A(+1)*n(+1))^(1-alp)+(1-del))/(c(+2)*P(+2)); |
| 47 |
(psi/(1-psi))*(c*P/(1-n))=W; |
| 48 |
R = P*(1-alp)*k(-1)^alp*A^(1-alp)*n^(-alp)/W; |
| 49 |
W = l/n; |
| 50 |
M-M(-1)+d = l; |
| 51 |
1/(c*P)=bet*R/(c(+1)*P(+1)); |
| 52 |
y = k(-1)^alp*(A*n)^(1-alp); |
| 53 |
end; |
| 54 |
|
| 55 |
initval; |
| 56 |
k = 6; |
| 57 |
gM = mst; |
| 58 |
P = 2.25; |
| 59 |
c = 0.45; |
| 60 |
W = 4; |
| 61 |
R = 1.02; |
| 62 |
d = 0.85; |
| 63 |
n = 0.19; |
| 64 |
l = 0.86; |
| 65 |
y = 0.6; |
| 66 |
gA = exp(gam); |
| 67 |
end; |
| 68 |
|
| 69 |
shocks; |
| 70 |
var e_a; stderr 0.014; |
| 71 |
var e_m; stderr 0.005; |
| 72 |
end; |
| 73 |
|
| 74 |
steady; |
| 75 |
|
| 76 |
check; |
| 77 |
|
| 78 |
stoch_simul; |