The BQ decomposition with 3 or more variables
Posted: Fri Dec 04, 2015 8:22 am
Dear Tom,
I would like to estimate an SVAR model which is an extension of the Blanchard and Quah’s decomposition to the case of 3 or 4 variables (i.e. the long-run response (3*3) o r(4*4) matrix is lower triangular). To practice myself with all the RATS codes and procedures, I built a little program and procedure named SRLRDoDraws .src (based on different programs and procedures found on the Estima’s website). Armed with this program, I try to recover the IRF and errors bands of the BQ’s papers. And here, I met one problem:
- I obtained exactly the BQ’s paper IRF (without the errors bands) with the following lines:
@ShortAndLong(lr=lr,sr=sr,masum=inv(%varlagsums),factor=f) vsigma
compute f=%dmult(f,||%sign(f(1,1)),%sign(f(1,2))||)
@varirf(model=varmodel,steps=nsteps,factor=f,page=all, shocks=shocklabels,varlabels=varlabels,accumulate=||1||)
(this is the figure 1)
- but when I try to compute the errors bands (with Monte Carlo integration) I cannot recover the right IRF of the GNP and Unemployment to the supply shock (and the errors bands seem uncorrect) with this part of the code:
@SRLRDoDraws(accum=||1||,steps=nsteps,model=varmodel,lr=lr,sr=sr)
@MCProcessIRF(model=varmodel,percentiles=||.05,.95||,center=mean,lower=lower,upper=upper,irf=irf)
(this is the figure 2)
What is strange for me is that I recover the right IRF of the GNP and Unemployment to the demand shock on the right column of figure 2, but not the right IRFs to the supply shock (left column of figure 2). However, earlier in the program when I use @varirf, the IRFs to both shocks are consistent with BQ figures (figure 3 and 4, p 663 of the AER paper)
Do you have any idea why in the second graph the IRFs to the supply shock are not correct ?
Thank you in advance,
Best,
Romain
I would like to estimate an SVAR model which is an extension of the Blanchard and Quah’s decomposition to the case of 3 or 4 variables (i.e. the long-run response (3*3) o r(4*4) matrix is lower triangular). To practice myself with all the RATS codes and procedures, I built a little program and procedure named SRLRDoDraws .src (based on different programs and procedures found on the Estima’s website). Armed with this program, I try to recover the IRF and errors bands of the BQ’s papers. And here, I met one problem:
- I obtained exactly the BQ’s paper IRF (without the errors bands) with the following lines:
@ShortAndLong(lr=lr,sr=sr,masum=inv(%varlagsums),factor=f) vsigma
compute f=%dmult(f,||%sign(f(1,1)),%sign(f(1,2))||)
@varirf(model=varmodel,steps=nsteps,factor=f,page=all, shocks=shocklabels,varlabels=varlabels,accumulate=||1||)
(this is the figure 1)
- but when I try to compute the errors bands (with Monte Carlo integration) I cannot recover the right IRF of the GNP and Unemployment to the supply shock (and the errors bands seem uncorrect) with this part of the code:
@SRLRDoDraws(accum=||1||,steps=nsteps,model=varmodel,lr=lr,sr=sr)
@MCProcessIRF(model=varmodel,percentiles=||.05,.95||,center=mean,lower=lower,upper=upper,irf=irf)
(this is the figure 2)
What is strange for me is that I recover the right IRF of the GNP and Unemployment to the demand shock on the right column of figure 2, but not the right IRFs to the supply shock (left column of figure 2). However, earlier in the program when I use @varirf, the IRFs to both shocks are consistent with BQ figures (figure 3 and 4, p 663 of the AER paper)
Do you have any idea why in the second graph the IRFs to the supply shock are not correct ?
Thank you in advance,
Best,
Romain