Hello,
I am trying to estimate a 3 variable SVAR of the effects of oil price shocks on macroeconomic fluctuations as in "BJØRNLAND, H. C. (2000). The dynamic effects of aggregate demand, supply and oil price shocks - a comparative study. The Manchester School of Economic Studies, 68, pp. 578–607".
I have obtained the IRF's however I would like to carry out the Variance decomposition but the procedure in the User guide seems a bit hazy I know I have to make use of the errors command but then I'm really stuck as to going about it.
************************************************************
system(model=mexicosvar)
variables d_l_mex_ip d_l_oilp_mex mex_ur
lags 1to 2
det constant
end(system)
estimate(print,resids=varresidsmex)
************************************************************
*RESTRICTIONS
dec rect lr(3,3)
dec rect sr(3,3)
input sr
. . .
0 . 0
. . .
input lr
0 . .
. . .
. . .
@ShortAndLong(sr=sr,lr=lr,masum=inv(%varlagsums), factor=b) %sigma
****************************************************************
*OBTAIN STRUCTURAL SHOCKS
@StructResids(factor=b) varresidsmex 1987:01 2010:12 strshocs
I would like help in pressing forward.
Thanks
