I am trying to look at the effect of my treatment on Quarterly wages. However, when I try to use the coefplot and try to order the plot estimates they are not being ordered. I would like to have the X label range as (-6, -5, ..., 0, 1, ...., 6), these are quarter pre and post-treatment.
coefplot (Wage_Reg1, keep(MajQtrLead0 MajQtrLead1 MajQtrLead2 MajQtrLead3 MajQtrLead4 MajQtrLead5 MajQtrLead6 MajQtr1 MajQtr2 MajQtr3 MajQtr4 MajQtr5 MajQtr6 ) label("Total Wage") pstyle(p4)) ///
, vertical drop(_cons) yline(0) msize(1) msymbol(D) byopts(yrescale xrescale row(2)) ///
coeflabels(MajQtrLead0 = "0" ///
MajQtr1 = " lag1" ///
MajQtr2 = " 2" ///
MajQtr3 = " 3" ///
MajQtr4 = " 4" ///
MajQtr5 = " 5" ///
MajQtr6 = " 6" ///
MajQtrLead1 = " lead1" ///
MajQtrLead2 = " 2" ///
MajQtrLead3 = " 3" ///
MajQtrLead4 = " 4" ///
MajQtrLead5 = " 5" ///
MajQtrLead6 = " 6") ///
legend(off) xlabel(, angle(45)) xtitle({stSerif: Quarters Pre and Post a Major Treatment}, size(3) color(gs5)) ///
ylabel(, angle(45)) ytitle({stSerif: Log of Quarterly Wages }, size(3) color(gs5)) ///
subtitle(, size(3) margin(none) justification(center) color(gs5) bcolor(white) bmargin(top_bottom))
coefplot (Wage_Reg1, keep(MajQtrLead0 MajQtrLead1 MajQtrLead2 MajQtrLead3 MajQtrLead4 MajQtrLead5 MajQtrLead6 MajQtr1 MajQtr2 MajQtr3 MajQtr4 MajQtr5 MajQtr6 ) label("Total Wage") pstyle(p4)) ///
, vertical drop(_cons) yline(0) msize(1) msymbol(D) byopts(yrescale xrescale row(2)) ///
coeflabels(MajQtrLead0 = "0" ///
MajQtr1 = " lag1" ///
MajQtr2 = " 2" ///
MajQtr3 = " 3" ///
MajQtr4 = " 4" ///
MajQtr5 = " 5" ///
MajQtr6 = " 6" ///
MajQtrLead1 = " lead1" ///
MajQtrLead2 = " 2" ///
MajQtrLead3 = " 3" ///
MajQtrLead4 = " 4" ///
MajQtrLead5 = " 5" ///
MajQtrLead6 = " 6") ///
legend(off) xlabel(, angle(45)) xtitle({stSerif: Quarters Pre and Post a Major Treatment}, size(3) color(gs5)) ///
ylabel(, angle(45)) ytitle({stSerif: Log of Quarterly Wages }, size(3) color(gs5)) ///
subtitle(, size(3) margin(none) justification(center) color(gs5) bcolor(white) bmargin(top_bottom))