code:
#delimit ;
coefplot, baselevels
keep(pre* current post*)
vertical
coeflabels(pre5 = "-5" pre4 = "-4" pre3 = "-3" pre2 = "-2" pre1 = "-1"
current = "0"
post1 = "1" post2 = "2" post3 = "3" post4 = "4" post5 = "5")
msymbol(circle_hollow) mcolor(navy) lcolor(navy)
yline(0, lwidth(vthin) lpattern(dash) lcolor(teal))
xline(4, lwidth(vthin) lpattern(dash) lcolor(teal)) //画在基准期
ylabel(,labsize(small) angle(horizontal) nogrid)
xlabel(,labsize(small))
xmtick(,nolabels ticks)
ytitle("Financial Constraint", size(small))
xtitle("The Nth year before(afte) Huazheng ESG Disclosure", size(small))
addplot(line @b @at, lcolor(navy)) //折线的颜色
ciopts(lpattern(dash) recast(rcap) msize(medium) lcolor(navy)) //置信区间的颜色
legend(off)
graphregion(fcolor(white) lcolor(white) ifcolor(white) ilcolor(white))
scheme(s1mono);
#delimit cr