Debian Codegraph @

tests/pi2004/ireland.mod

raw
1 var y a k c i h eoy eoc eoh oy oc oh;
2 varexo e eeoy eeoc eeoh;
3
4 parameters theta rho eta gam bet delta aa r11 r12 r13 r21 r22 r23 r31 r32 r33 scy shc shy;
5
6 bet = 0.99;
7 delta = 0.025;
8 theta = 0.2;
9 rho = 0.9959;
10 eta = 1.0051;
11 gam = 0.0045;
12 aa = 1.8;
13 r11 = 0.99;
14 r12 = 0;
15 r13 = 0;
16 r21 = 0;
17 r22 = 0.99;
18 r23 = 0;
19 r31 = 0;
20 r32 = 0;
21 r33 = 0.99;
22 scy = 0.0040;
23 shy = 0.0015;
24 shc = 0.0010;
25
26 model;
27 exp(y) = exp(a)*exp(k(-1))^theta*exp(h)^(1-theta);
28 a = (1-rho)*aa+rho*a(-1)+e;
29 exp(y) = exp(c) + exp(i);
30 eta*exp(k) = (1-delta)*exp(k(-1))+exp(i);
31 gam*exp(c)*exp(h) = (1-theta)*exp(y);
32 eta/exp(c) = bet*(1/exp(c(+1)))*(theta*(exp(y(+1))/exp(k))+1-delta);
33 eoy = r11*eoy(-1) + r12*eoc(-1) + r13*eoh(-1) + eeoy;
34 eoc = r21*eoy(-1) + r22*eoc(-1) + r23*eoh(-1) + scy*eeoy+eeoc;
35 eoh = r31*eoy(-1) + r32*eoc(-1) + r33*eoh(-1) + shy*eeoy+shc*eeoc+eeoh;
36 oy = y + eoy;
37 oc = c + eoc;
38 oh = h + eoh;
39 end;
40
41 initval;
42 a = 1.7;
43 y = 8;
44 c = 8;
45 k = 10;
46 i = 5;
47 h = 4;
48 eoy = 0;
49 eoc = 0;
50 eoh = 0;
51 oy = y;
52 oc = c;
53 oh = h;
54 end;
55
56 steady;
57 check;
58
59 estimated_params;
60 theta , 0.22, 0.1, 0.5;
61 rho , 0.99, 0.7, 0.9999;
62 eta , 1.0051, 1, 1.03;
63 gam , 0.0045, 0.001, 0.01;
64 aa , 1.8, 0.1, 4;
65 r11 , 1.4187, -2, 2;
66 r12 , 0.2251, -2, 2;
67 r13 , -0.4441, -2, 2;
68 r21 , 0.0935, -2, 2;
69 r22 , 1.0236, -2, 2;
70 r23 , -0.0908, -2, 2;
71 r31 , 0.7775, -2, 2;
72 r32 , 0.3706, -2, 2;
73 r33 , 0.2398, -2, 2;
74 scy , 0.0040, -2, 2;
75 shy , 0.0015, -2, 2;
76 shc , 0.0010, -2, 2;
77 stderr e , 0.0056, 0, 0.2;
78 stderr eeoy , 0.0070, 0, 0.1;
79 stderr eeoc , 0.0069, 0, 0.1;
80 stderr eeoh , 0.0018, 0, 0.1;
81 end;
82
83 varobs oy oc oh;
84
85 observation_trends;
86 oy (log(eta));
87 oc (log(eta));
88 end;
89
90 estimation(datafile=idata,mode_compute=1,silent_optimizer,nograph,dirname='MYDIR/mysubdir');