I'm fairly new to RATS and hope you can help.
I'm running a two variable VAR for US Real GDP and the US savings rate and imposing a long run restriction (Blanchard-Quah restriction) that states that shocks to the savings rate have no long run effect on the growth rate of GDP.
I'm using the 2nd difference of the Log of Real GDP and the 1st difference of the savings rate and so expect to see that the accumulated impulse response of output to the savings shock converges to zero.
I get this result when I run the simple Impulse Responses but I also want to get the confidence bands for these too. Following the MonteCarlo procedure, I get very different impulse responses. Can you help? I'm not sure what is wrong with my code or whether there is a calibration discrepancy between the two.
Code: Select all
*
OPEN DATA "C:\Users\jfw43\Dissertation\Eviews and Data Files\Savings Rate and Log GDP in Differences.RAT"
DATA(FORMAT=RATS) 1959:01 2014:03 D2LRGDP DSRATE
*
system(model=svar)
var d2lrgdp dsrate
lags 1
det constant
end(system)
*
estimate(noprint,resids=resids)
*
compute factor=%bqfactor(%sigma,%varlagsums)
*
declare rectangular[series] impulses(2,2)
com implabels = ||'Output','Savings Rate'||
impulse(decomp=factor,result=impulses,model=svar) * 40 *
*
@varirf(model=svar,decomp=factor,steps=40,page=byshocks,$
variables=||"Real GDP","Savings Rate"||,shocks=||"Output", "Savings"||,accum=||1,2||)
And this for MC simulations:
Code: Select all
****MONTE CARLO ESTIMATION******
*
OPEN DATA "C:\Users\jfw43\Dissertation\Eviews and Data Files\Savings Rate and Log GDP in Differences.RAT"
DATA(FORMAT=RATS) 1959:01 2014:03 D2LRGDP DSRATE
*
compute [vect[strings]] shocklabels=||"Output","Savings"||
compute [vect[strings]] varlabels=||"Real GDP","Savings Rate"||
*
system(model=svar)
var d2lrgdp dsrate
lags 1
det constant
end(system)
*
estimate(noprint,resids=resids)
@BQDoDraws(model=varmodel)
@MCGraphIRF(model=varmodel,shocklabels=shocklabels,varlabels=varlabels)