jpfeifer wrote:If you want to only consider the effect of the shock B ordered last, you need to purge the residual of that equation from the effect of shock A that affects both equations.
Say the observed residuals are given by
[res_1; res_2]=[A;B]*R
where R is the upper Cholesky matrix. Then you can back out the shocks A and B by postmultiplying the left hand side by R^{-1}.
var Gov, Tfp;
varexo g, z;
parameters rho;
rho = 0.95;
model;
Gov = rho*Gov(-1) + g;
Tfp = rho*Tfp(-1) + z;
end;
shocks;
var g; stderr 0.0039;
var z; stderr 0.0086;
corr e, u = 0.3868;
end;
stoch_simul(order=1);
Users browsing this forum: No registered users and 8 guests