Hello,
Take the following example data
I am estimating the effect of brands on price, weight and length.
I am using coefplot to present my results
This is the resulting plot:

To ease interpretation, I would like to change this plot. The x axis should consist of the three dependent variables, hence the coefficients for the same DV should be close to one another. Different colors should be used in each coefficient bar, to indicate the brands (Audi, Fiat, Ods, etc..). In other words, I would like to swap the regressor in the x-axis, with the DVs in the legend box.
I am not sure how to do this: does anyone knows how I could do this, with coefplot or in other ways?
thanks a lot in advance for your help
Take the following example data
Code:
* create base data sysuse auto,clear gen brand = word(make, 1) keep if inlist(brand, "Audi", "Fiat", "Olds", "Pont.") encode brand, generate(brand_en) * estimate regression of interest reg price ibn.brand_en,nocons eststo rpr reg weight ibn.brand_en,nocons eststo rwe reg length ibn.brand_en,nocons eststo lwe
I am using coefplot to present my results
Code:
coefplot (rpr,label(Price) pstyle(p3) msymbol(Oh) offset(-0.25)) (rwe,label(weight) msymbol(S) pstyle(p2)) (lwe,label(Length) msymbol(D) pstyle(p4) offset(0.25)), vert ciopts(lwidth(medium) recast(rcap)) ylabel(,grid) plotregion(margin(vlarge)) //
To ease interpretation, I would like to change this plot. The x axis should consist of the three dependent variables, hence the coefficients for the same DV should be close to one another. Different colors should be used in each coefficient bar, to indicate the brands (Audi, Fiat, Ods, etc..). In other words, I would like to swap the regressor in the x-axis, with the DVs in the legend box.
I am not sure how to do this: does anyone knows how I could do this, with coefplot or in other ways?
thanks a lot in advance for your help
Comment