| 1 |
var c q m b u R uaux ca; |
| 2 |
|
| 3 |
varexo eeps nnu; |
| 4 |
|
| 5 |
parameters bbetaL ies crra gbar bbar eeta Rbar Rpers; |
| 6 |
|
| 7 |
bbetaL = 0.98; |
| 8 |
ies = 1.5; |
| 9 |
crra = 12.0; |
| 10 |
gbar = .01; |
| 11 |
bbar = -.04; |
| 12 |
eeta = 2.0; |
| 13 |
Rbar = 1.03; |
| 14 |
Rpers = .5; |
| 15 |
|
| 16 |
model; |
| 17 |
|
| 18 |
q = m(+1)*R(+1); |
| 19 |
uaux = u(+1)^(1-crra); |
| 20 |
m = bbetaL*exp(-gbar/ies)*uaux(-1)^((ies-1)/(ies*(1-crra))-1)*u^(1/ies-crra)*c^(-1/ies)/c(-1)^(-1/ies); |
| 21 |
b = bbar*q^eeta*exp(nnu); |
| 22 |
c + q*b*exp(gbar) = 1 + R*b(-1); |
| 23 |
u = ( (1-bbetaL)*c^((ies-1)/ies) + bbetaL*exp(gbar*(ies-1)/ies)*uaux^((ies-1)/(ies*(1-crra))))^(ies/(ies-1)); |
| 24 |
R = (1-Rpers)*Rbar + Rpers*R(-1) + eeps; |
| 25 |
ca = b*exp(gbar)-b(-1); |
| 26 |
|
| 27 |
end; |
| 28 |
|
| 29 |
steady_state_model; |
| 30 |
R = Rbar; |
| 31 |
m = bbetaL*exp(-gbar/ies); |
| 32 |
q = bbetaL*exp(-gbar/ies)*Rbar; |
| 33 |
b = bbar*(bbetaL*exp(-gbar/ies)*Rbar)^eeta; |
| 34 |
c = 1 + Rbar*bbar*(bbetaL*exp(-gbar/ies)*Rbar)^eeta - exp(gbar)*bbar*(bbetaL*exp(-gbar/ies)*Rbar)^eeta*bbetaL*exp(-gbar/ies)*Rbar; |
| 35 |
u = ((1-bbetaL)/(1-bbetaL*exp(gbar*(ies-1)/ies )) )^(ies/(ies-1))*(1 + Rbar*bbar*(bbetaL*exp(-gbar/ies)*Rbar)^eeta - exp(gbar)*bbar*(bbetaL*exp(-gbar/ies)*Rbar)^eeta*bbetaL*exp(-gbar/ies)*Rbar); |
| 36 |
uaux = u^(1-crra); |
| 37 |
ca = (exp(gbar)-1)*bbar*(bbetaL*exp(-gbar/ies)*Rbar)^eeta; |
| 38 |
end; |
| 39 |
|
| 40 |
resid; |
| 41 |
steady(solve_algo=3); |
| 42 |
|
| 43 |
estimated_params; |
| 44 |
ies, normal_pdf, 1.5, .2; |
| 45 |
end; |
| 46 |
|
| 47 |
options_.plot_priors=0; |