I'm trying to create a plot, similar to Stata's `coefplot`, but for marginal effects. I have a bunch of categorical variables, which look great on a coefplot, but I can't get the x axis to list marginal effects. In the same way, I can get margins to produce marginal effects, but I can't get marginsplot to produce all of the output. Some sample data is listed below of what I'm trying to do.
Code:
sysuse auto, clear recode gear_ratio (2/2.50=1) (2.51/3=2) (3/4=3) reg price i.foreign i.gear_ratio est store car1
Code:
coefplot(car1)
Code:
margins foreign gear marginsplot,recast(scatter)
Any help would be appreciated!
0 Response to Coefplot for marginal effects
Post a Comment