用的这个代码
xtreg y xh* did i.year,fe
coefplot,baselevels keep (xh*) vertical yline(0)ytitle("政策效应")xtitle("政策前后")addplot(line @b @at) ciopts(recast(rcap)) scheme(s1mono)levels(95) coeflabels(xh2="-4"xh3="-3"xh4="-2"xh5="-1"xh6="0"xh7="1"xh8="2"xh9="3"xh10="4"xh11="5"xh12="6")xline(5,lp(shortdash))