-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gali_regimeA.mod
103 lines (94 loc) · 1.7 KB
/
Gali_regimeA.mod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
var
G b R pi T m Tstar gm um uc
Z un w A mc N pistar x1 x2 pitile
D Y C lamb r
;
varexo
epsA epsG epsT epsZ
;
parameters
bet psib delt alph ep xi iot chi xbar sigm ps ph G_Y b_Y m_Y
thet
;
G_Y=0;
b_Y=2.4;
m_Y=3;
bet=0.995;
psib=0.02;
delt=0.5;
alph=0.25;
ep=9;
xi=0.75;
iot=0;
chi=0.0018;
xbar=0.1; %recalibrate
sigm=2.5;
ps=0.1; %recalibrate
ph=5; %inverse frich
thet=3.5; %intertemporal substitution rate
model;
%1
G + b(-1)*R(-1)/pi= T + b + m-m(-1)/pi;
%2
(T-steady_state(T))/steady_state(Y)=
psib*(b(-1)-steady_state(b))/steady_state(Y)
+(Tstar-steady_state(Tstar))/steady_state(Y);
%3
(G-steady_state(G))/steady_state(Y)=
delt * (G(-1)-steady_state(G))/steady_state(Y) + epsG;
%4
(Tstar-steady_state(Tstar))/steady_state(Y)=
delt * (Tstar(-1)-steady_state(Tstar))/steady_state(Y) - epsT;
%5a
m-m(-1)/pi=G+(R(-1)/pi-1)*b(-1)-T;
%6
m/m(-1)*pi=gm;
%7
um/uc=(R-1)/R;
%8
Z*uc=bet*Z(+1)*uc(+1)*R/pi(+1);
%9
un/uc=w;
%10
w=mc*(1-alph)*Y/N;
%11
pistar=ep/(ep-1)*x1/x2;
%12
x1=lamb*mc*Y+bet*xi*(pitile(+1)/pi(+1))^(-ep)*x1(+1);
%13
x2=lamb*Y+bet*xi*(pitile(+1)/pi(+1))^(1-ep)*x2(+1);
%14
pitile=pi(-1)^iot*steady_state(pi)^(1-iot);
%15
1=xi*(pi/pitile)^(ep-1)+(1-xi)*pistar^(1-ep);
%16
D*Y=A*N^(1-alph);
%17
D=(1-xi)*pistar^(-ep)+xi*(pi/pitile)^ep*D(-1);
%18
Y=C+G;
%19
log(A/steady_state(A))=
delt*log(A(-1)/steady_state(A))+epsA;
%20
log(Z/steady_state(Z))=
delt*log(Z(-1)/steady_state(Z))+epsZ;
%21
lamb=Z*uc;
%22
un=ps*N^ph;
%23
uc=C^(-thet);
%24
um=chi*(m/C-xbar)^(-sigm)/C;
%25
r=R/pi(+1);
end;
steady;
check;
shocks;
var epsT=1;
end;
stoch_simul(order=1,irf=16,periods=0)
T m b Y C pi r gm N R
;