Consider the following toy example using the community-contributed Stata command coefplot
:
sysuse auto
reg weight i.foreign
eststo, title("Weight"): margins, eydx(foreign) post
reg price i.foreign
eststo, title("Price"): margins, eydx(foreign) post
coefplot est1 est2, horizontal
Is it possible to get the titles (or even the variable labels) in the legend, instead of the estimate names (i.e. Weight
and Price
instead of est1
and est2
)?
I know how to do it by hand, but I can't figure out how to do this automatically with many models.