Graphics 在Stata,我如何将coefplot';s表示跨越分类变量?

Graphics 在Stata,我如何将coefplot';s表示跨越分类变量?,graphics,stata,coefplot,Graphics,Stata,Coefplot,我正在使用coefplot命令(,)绘制链上连续变量的状态图 小型可重复生产示例: sysuse auto, clear drop if rep78 < 3 la de rep78 3 "Three" 4 "Four" 5 "Five" la val rep78 rep78 mean mpg if foreign == 0, over(rep78) eststo Domestic mean mpg if foreign == 1, over(rep78) eststo Foreign

我正在使用
coefplot
命令(,)绘制链上连续变量的状态图

小型可重复生产示例:

sysuse auto, clear
drop if rep78 < 3
la de rep78 3 "Three" 4 "Four" 5 "Five"
la val rep78 rep78

mean mpg if foreign == 0, over(rep78)
eststo Domestic
mean mpg if foreign == 1, over(rep78)
eststo Foreign

su mpg, mean
coefplot Domestic Foreign , xtitle(Mpg) xline(`r(mean)') 

还有其他的可能性吗?

这似乎可以解决问题

   coefplot Domestic Foreign , xtitle(Mpg) xline(`r(mean)')  ///
      groups(Three Four Five = "Repair Record 1978")
然而,我不知道它将如何处理具有相同标签的分类变量的情况

   coefplot Domestic Foreign , xtitle(Mpg) xline(`r(mean)')  ///
      groups(Three Four Five = "Repair Record 1978")