Hello!
Im posting this because i need help with 2 things:
1. I need to add a red yline() That takes the value of 0 from, -12 to 0 (x axsis). And then From 1 to 12, takes another value, for example lets say -0.04
2. Wondering if i can add shadow for the IC. Instead of the classic IC (as is now in the graph).
Im using STATA /SE 18.0
Here de DATA: https://drive.google.com/file/d/1oGz...ew?usp=sharing
And here is the code:
Thanks!
#delimit ;
graph twoway (rcap max95 min95 EventYear, mcolor(black) lcolor(black) lpattern(solid))
(scatter estimate EventYear, mcolor(black) lcolor(black) lpattern(solid) m(d) ),
graphregion(fcolor(white) lcolor(white) lwidth(vvvthin) ifcolor(white) ilcolor(white) ilwidth(vvvthin))
title( "{stSerif:{bf:Figure 1. {it:Event Study: cotiza_pension}}}", color(black) size(large))
xtitle("{stSerif:Meses Desde el Derecto de Ley Migración}") xscale(titlegap(2))
xline(0, lcolor(black) lpattern(dash)) legend(off)
yline(0, lcolor(black) lpattern(dash))
yline(-0.1 -0.05 0 0.05 0.1, lwidth(vvvthin) lpattern(dash) lcolor(black))
xlabel(#17,valuelabel nogrid)
note("{stSerif:{it:Notes}. OLS coefficient estimates (and their 95% confidence intervals) are reported.}"
"{stSerif: Especificación 2.}", margin(small)) ;
#delimit cr

Im posting this because i need help with 2 things:
1. I need to add a red yline() That takes the value of 0 from, -12 to 0 (x axsis). And then From 1 to 12, takes another value, for example lets say -0.04
2. Wondering if i can add shadow for the IC. Instead of the classic IC (as is now in the graph).
Im using STATA /SE 18.0
Here de DATA: https://drive.google.com/file/d/1oGz...ew?usp=sharing
And here is the code:
Thanks!
#delimit ;
graph twoway (rcap max95 min95 EventYear, mcolor(black) lcolor(black) lpattern(solid))
(scatter estimate EventYear, mcolor(black) lcolor(black) lpattern(solid) m(d) ),
graphregion(fcolor(white) lcolor(white) lwidth(vvvthin) ifcolor(white) ilcolor(white) ilwidth(vvvthin))
title( "{stSerif:{bf:Figure 1. {it:Event Study: cotiza_pension}}}", color(black) size(large))
xtitle("{stSerif:Meses Desde el Derecto de Ley Migración}") xscale(titlegap(2))
xline(0, lcolor(black) lpattern(dash)) legend(off)
yline(0, lcolor(black) lpattern(dash))
yline(-0.1 -0.05 0 0.05 0.1, lwidth(vvvthin) lpattern(dash) lcolor(black))
xlabel(#17,valuelabel nogrid)
note("{stSerif:{it:Notes}. OLS coefficient estimates (and their 95% confidence intervals) are reported.}"
"{stSerif: Especificación 2.}", margin(small)) ;
#delimit cr
Comment