kim2.mod 1.73 KB
Newer Older
Marco Ratto's avatar
Marco Ratto committed
1
2
3
4
5
6
7
8
9
10
11
var c k i a lam;
varexo ea;

parameters
alph
betae
delta
as
s
theta
phi
12
dumpy
Marco Ratto's avatar
Marco Ratto committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;


alph=0.6;
betae=0.99;
delta=0.0125;
as=0.1;
phi=2;
s=betae*delta*alph/(1-betae+delta*betae);
theta=1;

model;
//(1-(betae*delta*alph/(1-betae+delta*betae)))^theta/c^(1+theta)/(1+theta)*(1+theta)*(i/(betae*delta*alph/(1-betae+delta*betae)))^theta*(i/k/delta)^phi=betae*(1-(betae*delta*alph/(1-betae+delta*betae)))^theta/c(+1)^(1+theta)/(1+theta)*(alph*(1+theta)*a(+1)^(1+theta)*k^(alph*(1+theta)-1)+(1-delta)*(i(+1)/k/delta)^phi*(1+theta)*(i(+1)/(betae*delta*alph/(1-betae+delta*betae)))^theta);
lam*(1+theta)*(i/(betae*delta*alph/(1-betae+delta*betae)))^theta*(i/k/delta)^phi=betae*lam(+1)*(alph*(1+theta)*a(+1)^(1+theta)*k^(alph*(1+theta)-1)+(1-delta)*(i(+1)/k/delta)^phi*(1+theta)*(i(+1)/(betae*delta*alph/(1-betae+delta*betae)))^theta);
k=(delta*(i/delta)^(1-phi)+(1-delta)*k(-1)^(1-phi))^(1/(1-phi));
((1-(betae*delta*alph/(1-betae+delta*betae)))*(c/(1-(betae*delta*alph/(1-betae+delta*betae))))^(1+theta) + 
(betae*delta*alph/(1-betae+delta*betae))*(i/(betae*delta*alph/(1-betae+delta*betae)))^(1+theta))^(1/(1+theta))=
(a*k(-1)^alph);
a = as+ea;
Marco Ratto's avatar
Marco Ratto committed
32
lam = (1-(betae*delta*alph/(1-betae+delta*betae)))^theta/c^(1+theta)/(1+theta);
33
//cobs = c+ec;
Marco Ratto's avatar
Marco Ratto committed
34
35
36
37
38
39
40
end;

steady;
check;

shocks;
var ea = 1;
Marco Ratto's avatar
Marco Ratto committed
41
//var ec = 0;
Marco Ratto's avatar
Marco Ratto committed
42
43
44
45
46
47
48
49
end;

estimated_params;
alph ,uniform_pdf,0.6,0.04,0.5,0.7;
//betae ,uniform_pdf,0.99,0.004,0.98,1;
//delta ,uniform_pdf,0.0125,0.001,0.01,0.015;
phi ,uniform_pdf,0.5,0.2,0,10;
theta ,uniform_pdf,0.3,0.1,0,10;
50
dumpy ,uniform_pdf,0.5,0.2,0,10;
Marco Ratto's avatar
Marco Ratto committed
51
52
53
end;

varobs c i;
54
identification(advanced=1,max_dim_cova_group=3);
Marco Ratto's avatar
Marco Ratto committed
55
//varobs c i lam; //to check if observing lam identifies phi and theta
56
//identification(ar=1,advanced=1,max_dim_cova_group=3,prior_mc=250);
Marco Ratto's avatar
Marco Ratto committed
57
//identification(prior_mc=100);