| 1 |
% This is a regression test for issue preprocessor#40 |
| 2 |
% (“identification” without “stoch_simul”) |
| 3 |
|
| 4 |
%this is the mod file used in replication files of An and Schorfheide (2007) |
| 5 |
% modified to include some obvious and artificial identification failures |
| 6 |
% and to check whether all kronflags are working |
| 7 |
% created by Willi Mutschler ([email protected]) |
| 8 |
|
| 9 |
var y R g z c dy p YGR INFL INT; |
| 10 |
varobs y R g z c dy p YGR INFL INT; |
| 11 |
varexo e_r e_g e_z; |
| 12 |
parameters sigr sigg sigz tau phi psi1 psi2 rhor rhog rhoz rrst pist gamst nu cyst dumpy dumpyrhog; |
| 13 |
|
| 14 |
rrst = 1.0000; |
| 15 |
pist = 3.2000; |
| 16 |
gamst= 0.5500; |
| 17 |
tau = 2.0000; |
| 18 |
nu = 0.1000; |
| 19 |
kap = 0.3300; |
| 20 |
phi = tau*(1-nu)/nu/kap/exp(pist/400)^2; |
| 21 |
cyst = 0.8500; |
| 22 |
psi1 = 1.5000; |
| 23 |
psi2 = 0.1250; |
| 24 |
rhor = 0.7500; |
| 25 |
rhog = 0.9500; |
| 26 |
rhoz = 0.9000; |
| 27 |
sigr = 0.2; |
| 28 |
sigg = 0.6; |
| 29 |
sigz = 0.3; |
| 30 |
dumpy = 0; |
| 31 |
dumpyrhog = 1; |
| 32 |
|
| 33 |
model; |
| 34 |
#pist2 = exp(pist/400); |
| 35 |
#rrst2 = exp(rrst/400); |
| 36 |
#bet = 1/rrst2; |
| 37 |
#gst = 1/cyst; |
| 38 |
#cst = (1-nu)^(1/tau); |
| 39 |
#yst = cst*gst; |
| 40 |
1 = exp(-tau*c(+1)+tau*c+R-z(+1)-p(+1)); |
| 41 |
(1-nu)/nu/phi/(pist2^2)*(exp(tau*c)-1) = (exp(p)-1)*((1-1/2/nu)*exp(p)+1/2/nu) - bet*(exp(p(+1))-1)*exp(-tau*c(+1)+tau*c+dy(+1)+p(+1)); |
| 42 |
exp(c-y) = exp(-g) - phi*pist2^2*gst/2*(exp(p)-1)^2; |
| 43 |
R = rhor*R(-1) + (1-rhor)*psi1*p + (1-rhor)*psi2*(y-g) + sigr*e_r; |
| 44 |
g = dumpyrhog*rhog*g(-1) + sigg*e_g; |
| 45 |
z = rhoz*z(-1) + sigz*e_z; |
| 46 |
YGR = gamst+100*(dy+z); |
| 47 |
INFL = pist+400*p; |
| 48 |
INT = pist+rrst+4*gamst+400*R; |
| 49 |
dy = y - y(-1); |
| 50 |
end; |
| 51 |
|
| 52 |
shocks; |
| 53 |
var e_r = 0.6^2; |
| 54 |
var e_g = 0.5^2; |
| 55 |
var e_z = 0.4^2; |
| 56 |
corr e_r, e_g = 0.3; |
| 57 |
corr e_r, e_z = 0.2; |
| 58 |
corr e_z, e_g = 0.1; |
| 59 |
end; |
| 60 |
|
| 61 |
steady_state_model; |
| 62 |
z=0; g=0; c=0; y=0; p=0; R=0; dy=0; |
| 63 |
YGR=gamst; INFL=pist; INT=pist+rrst+4*gamst; |
| 64 |
end; |
| 65 |
|
| 66 |
estimated_params; |
| 67 |
tau, 2, 1e-5, 10, gamma_pdf, 2, 0.5; |
| 68 |
|
| 69 |
%these parameters do not enter the linearized solution |
| 70 |
cyst, 0.85, 1e-5, 0.99999, beta_pdf, 0.85, 0.1; |
| 71 |
sigg, 0.6, 1e-8, 5, inv_gamma_pdf, 0.4, 4; |
| 72 |
rhoz, 0.9, 1e-5, 0.99999, beta_pdf, 0.66, 0.15; |
| 73 |
corr e_r,e_g, 0.3, 1e-8, 5, inv_gamma_pdf, 0.4, 4; |
| 74 |
corr e_z,e_g, 0.3, 1e-8, 5, inv_gamma_pdf, 0.4, 4; |
| 75 |
corr e_z,e_r, 0.3, 1e-8, 5, inv_gamma_pdf, 0.4, 4; |
| 76 |
|
| 77 |
%these parameters could only be identified from the steady state of YGR INFL and INT, however, we observer y pi R instead |
| 78 |
rrst, 1, 1e-5, 10, gamma_pdf, 0.8, 0.5; |
| 79 |
gamst, 0.55, -5, 5, normal_pdf, 0.4, 0.2; |
| 80 |
dumpy, 0, -10, 10, normal_pdf, 0, 1; |
| 81 |
|
| 82 |
%these parameters jointly determine the slope kappa of the linearized new keynesian phillips curve |
| 83 |
pist, 3.2, 1e-5, 20, gamma_pdf, 4, 2; |
| 84 |
nu, 0.1, 1e-5, 0.99999, beta_pdf, 0.1, .05; |
| 85 |
phi, 50, 1e-5, 100, gamma_pdf, 50, 20; |
| 86 |
|
| 87 |
%these parameters are pairwise collinear as one should not use both formulations for the standard error of a shock |
| 88 |
sigz, 0.3, 1e-8, 5, inv_gamma_pdf, 0.4, 4; |
| 89 |
stderr e_z, 0.3, 1e-8, 5, inv_gamma_pdf, 0.4, 4; |
| 90 |
|
| 91 |
%these parameters are pairwise collinear as they are multiplicative |
| 92 |
rhog, 0.95, 1e-5, 0.99999, beta_pdf, 0.8, 0.1; |
| 93 |
dumpyrhog, 1, -10, 10, normal_pdf, 1, 1; |
| 94 |
|
| 95 |
%these parameters are jointly not identified due to the specification of the Taylor rule |
| 96 |
psi1, 1.5, 1e-5, 10, gamma_pdf, 1.5, 0.25; |
| 97 |
psi2, 0.125, 1e-5, 10, gamma_pdf, 0.5, 0.25; |
| 98 |
rhor, 0.75, 1e-5, 0.99999, beta_pdf, 0.5, 0.2; |
| 99 |
stderr e_r, 0.2, 1e-8, 5, inv_gamma_pdf, 0.3, 4; |
| 100 |
|
| 101 |
end; |
| 102 |
|
| 103 |
steady; |
| 104 |
check; |
| 105 |
|
| 106 |
identification(order=3, parameter_set=calibration, grid_nbr=10); |