Dear all,
I often see graphs in which the coefficients are plotted in ascending or descending order. I assume most of these plots are created in R, but I would like to know if this is also possible using Stata. For example when plotting marginal effects I normally use a code like this:
In the created plot the coefficients are sorted by the value of the independent variable (rep78=2, rep78=3,...). However, is there some way to sort/plot the coefficients by their effect (i.e. rep78=3, rep78=4, rep78=2, rep78=5)?
Thank you very much for your help.
Michael Jankowski
(I use Stata 13)
I often see graphs in which the coefficients are plotted in ascending or descending order. I assume most of these plots are created in R, but I would like to know if this is also possible using Stata. For example when plotting marginal effects I normally use a code like this:
Code:
sysuse auto, clear ssc install coefplot, replace all reg price i.rep78 margins, dydx(rep78) post est store ame_rep78 coefplot ame_rep78
Thank you very much for your help.
Michael Jankowski
(I use Stata 13)


Comment