Debian Codegraph @

tests/identification/as2007/as2007_QT_equal_autocorr.mod

raw
1 % this is the exact model Qu and Tkachenk (2012, Quantitative Economics)
2 % used in their replication file.
3 % This file illustrates that identification criteria are only local conditions,
4 % as when setting all autocorrelation coefficients to 0.5,
5 % [psi1,psi2] are not identified instead of [psi1,psi2,rhor,sig2r].
6 % Created by Willi Mutschler ([email protected])
7 var z g R y pie c piep yp;
8 varexo e_z e_g e_R ;
9 parameters tau betta nu phi pistar psi1 psi2 rhor rhog rhoz sig2r sig2g sig2z;
10
11 tau = 2.0000;
12 betta = 0.9975;
13 nu = 0.1000;
14 phi= 53.6797;
15 pistar=1.0080^2; %note pistar is squared
16 psi1 = 1.5000;
17 psi2 = 0.1250;
18 rhor = 0.500;
19 rhog = 0.500;
20 rhoz = 0.500;
21 sig2r= (.002^2)*(10^5);
22 sig2g= (.006^2)*(10^5);
23 sig2z=(.003^2)*(10^5);
24
25
26 model;
27 #kap=(tau*(1-nu))/(nu*phi*pistar);
28 y = y(+1) + g - g(+1) - 1/tau*(R-pie(+1)-z(+1));
29 pie = betta*pie(+1)+kap*(y-g);
30 c = y - g;
31 R = rhor*R(-1)+(1-rhor)*psi1*pie+(1-rhor)*psi2*(y-g)+sqrt(sig2r)*e_R;
32 g = rhog*g(-1)+sqrt(sig2g)*e_g;
33 z = rhoz*z(-1)+sqrt(sig2z)*e_z;
34 piep = pie(+1);
35 yp = y(+1);
36 end;
37
38 estimated_params;
39 tau , 2.0000;
40 betta , 0.9975;
41 nu , 0.1000;
42 phi , 53.6797;
43 pistar ,1.0080^2;
44 psi1 , 1.5000;
45 psi2 , 0.1250;
46 rhor , 0.500;
47 rhog , 0.500;
48 rhoz , 0.500;
49 sig2r , (.002^2)*(10^5);
50 sig2g , (.006^2)*(10^5);
51 sig2z , (.003^2)*(10^5);
52 end;
53
54 steady_state_model;
55 pie=0; y=0; c=0; R=0; g=0; z=0; yp=0; piep=0;
56 end;
57 steady;
58 check;
59
60 varobs R y pie c;
61
62 shocks;
63 var e_z;
64 stderr 1;
65 var e_g;
66 stderr 1;
67 var e_R;
68 stderr 1;
69 end;
70
71 identification;
72 identification(useautocorr=0,ar=10);