Hello. I am running a simple regression, and I want to plot the marginal means of my results
I am doing something like this.
Now, my objective is to plot marginal means, and I do the following.
Which works well and produces this plot.

How can I change the order of the coefficient bars in my combomarginsplot? For instance, Cad. and Linc. have very high prices: how can I put them at the start of my combomarginsplot?
thanks a lot in advance for your help
I am doing something like this.
Code:
* create relevant data: car brands sysuse auto encode make, generate(make_en) gen brand = word(make, 1) encode brand, generate(brand_en) * run main regression to examine the effect of brand on price reg price ib1.brand_en * estimate marginal means of brand on price. margins brand_en, post saving(brand_marg, replace)
Code:
combomarginsplot brand_marg, scale(0.60) scheme(s1color) recast(scatter) ylabel(,grid) plotregion(margin(vlarge)) ytitle("Price" "Marginal means") xtitle("") title("")
How can I change the order of the coefficient bars in my combomarginsplot? For instance, Cad. and Linc. have very high prices: how can I put them at the start of my combomarginsplot?
thanks a lot in advance for your help
Comment