I am using Stata 16.1/SE on Windows 10. I would like to put means in the legend box:

I am currently using the coefplot command from SSC:
In the MWE below (output attached), I output a plot with two coefficients on price. I am fine using a command other than coefplot if needbe.
I am currently using the coefplot command from SSC:
Code:
ssc install coefplot, replace
Code:
* start fresh clear all * auto dataset sysuse auto.dta * regression 1: effect of mpg on price summarize price local rmean = r(mean) regress price mpg estimates store reg1 estadd local mean "`rmean'" * regression 2: conditional on a domestic car, effect of mpg on price summarize price if foreign == 0 local rmean = r(mean) regress price mpg if foreign == 0 estimates store reg2 estadd local mean "`rmean'" * plot coefplot /// (reg1, label("Regression 1") keep(mpg)) /// (reg2, label("Regression 2") keep(mpg)) /// , /// vertical recast(bar) barwidth(0.2) fcolor(*.5)
Comment