Dear all,
I am making a twoway graph as follows:
when I plot is, the lagened is not correct.
I will be grateful for your help.
Sincerely,
Khattereh.
I am making a twoway graph as follows:
Code:
twoway /// rarea up90_lrgfcf_con_lremp dn90_lrgfcf_con_lremp horizon if horizon <= 5, lpattern(dash) color(blue%20) yaxis(1) || /// rarea up90_lrgfcf_con_lrgdp_cons dn90_lrgfcf_con_lrgdp_cons horizon if horizon <= 5, lpattern(dash) color(red%20) yaxis(2) || /// line b_lrgfcf_con_lremp horizon if horizon < 6, lcolor(blue) lpattern(solid) lwidth(medthick) yaxis(1) || /// line b_lrgfcf_con_lrgdp_cons horizon if horizon < 6, lcolor(red) lpattern(solid) lwidth(medthick) yaxis(2) || /// line a horizon if horizon < 6, lpattern(dash) lwidth(vthin) lcolor(blue) yaxis(1) || /// line a horizon if horizon < 6, lpattern(dash) lwidth(vthin) lcolor(red) yaxis(2) || /// function x=0, range(-1 5) lpattern(dash) lcolor(black) lwidth(thin) /// <-- vertical dashed line at horizon=0 , ylabel(, alternate axis(1)) ylabel(, alternate axis(2)) xlabel(-1 (1) 5) /// ytitle("Employment effect (%)", axis(1) size(medsmall)) /// ytitle("GDP effect (%)", axis(2) size(medsmall)) /// xtitle("Years after the shock", size(medsmall)) /// graphregion(color(white)) plotregion(color(white)) /// legend(order(3 "Employment" 4 "GDP") size(small) position(6)) /// title("Effect of Shock on Employment and GDP by Investment")
I will be grateful for your help.
Sincerely,
Khattereh.
Comment