| 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 = 6; |
| 43 |
y = 8; |
| 44 |
c = 7; |
| 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; |
| 61 |
rho , 0.99; |
| 62 |
eta , 1.0051; |
| 63 |
gam , 0.0045; |
| 64 |
aa , 1.8; |
| 65 |
r11 , 1.4187; |
| 66 |
r12 , 0.2251; |
| 67 |
r13 , -0.4441; |
| 68 |
r21 , 0.0935; |
| 69 |
r22 , 1.0236; |
| 70 |
r23 , -0.0908; |
| 71 |
r31 , 0.7775; |
| 72 |
r32 , 0.3706; |
| 73 |
r33 , 0.2398; |
| 74 |
scy , 0.0040; |
| 75 |
shy , 0.0015; |
| 76 |
shc , 0.0010; |
| 77 |
stderr e , 0.0055; |
| 78 |
stderr eeoy , 0.0072; |
| 79 |
stderr eeoc , 0.0057; |
| 80 |
stderr eeoh , 0; |
| 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,nograph); |