clear all set more off use gdp var Inf gdp m1 FF, lags(1/6) irf create var3, set(results3,replace) irf graph oirf graph rename irf3 irf graph oirf, impulse(FF) response (gdp) graph rename irf4 irf graph coirf, impulse(FF) response (gdp) graph rename irf5 matrix A = (1,0,0,0\.,1,0,0\.,.,1,0\.,.,.,1) matrix B = (.,0,0,0\0,.,0,0\0,0,.,0\0,0,0,.) svar Inf gdp m1 FF, lags(1/6) aeq(A) beq(B) iterate(1000) irf create var4, set(results4,replace) irf graph sirf, impulse(FF) response (gdp) graph rename irf6 matrix A1 = (1,0,0,0\0,1,0,0\0,0,1,0\0,0,0,1) matrix B1 = (.,0,0,0\.,.,0,0\.,.,.,0\.,.,.,.) svar Inf gdp m1 FF, lags(1/6) aeq(A1) beq(B1) iterate(1000) irf create var5, set(results5,replace) irf graph sirf, impulse(FF) response (gdp) graph rename irf7 matrix A2 = (1,0,-2.08\0,1,0\.,.,1) matrix B2 = (.,0,0\.,.,0\0,0,.) svar taxes realgovspending gdp, lags(1/6) aeq(A2) beq(B2) iterate(1000) irf create var6, set(results6,replace) irf graph sirf, response(gdp) graph rename irf8 irf graph sirf, response(taxes) graph rename irf9 irf graph sirf, response(realgovspending) graph rename irf10 matrix A3 = (1,0,0,0\.,1,.,.\0,0,1,.\.,.,.,1) matrix AC = (.,.,.,.\.,.,.,.\.,.,.,.\1,1,.,.) svar Inf gdp FF m2, lags(1/6) aeq(A3) beq(B) acns(AC) iterate(1000) irf create var7, set(results7,replace) irf graph sirf, impulse(FF) response (gdp) graph rename irf11