-
Notifications
You must be signed in to change notification settings - Fork 0
/
odp.mod
51 lines (40 loc) · 1.09 KB
/
odp.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
var y, pi, i, rr, rn;
varexo e;
parameters beta, sigma, kappa, lambda, elb, r, rho;
% Program execution parameters
% MODEL PARAMETERS
beta = 1/1.005; % quarterly time discount factor
sigma = 2; % relative risk aversion
kappa = 0.024; % slope of the Phillips curve
lambda = 0.003; % weight on output gap in loss function
elb = 0/4; % effective lower bound
% EXOGENOUS SHOCK PROCESS
r = 100*(1/beta-1); % steady-state (quarterly x 100)
rho = 0.85; % persistence
model;
y = y(+1) - 1/sigma*(rr - rn);
pi = beta*pi(+1) + kappa*y;
0 = min(i-elb, -(pi + lambda/kappa*y));
rr = i - pi(+1);
rn = r + rho*(rn(-1)-r) + e;
end;
initval;
rr = r;
rn = r;
i = r;
end;
steady; check;
initval;
rn = (-2/4-r)/rho + r;
%rn = r;
end;
endval;
rn = r;
end;
%shocks;
%var e;
%periods 1:5 6:24 26:200 ;
%values 0 -0.05 0;
%end;
simul(periods=200, maxit=500, stack_solve_algo=0);
do_irf;