Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Order coefficients in bycoefs coefplot

    Hello,

    I have created this coefplot with the "bycoefs" option. I am happy with it, but I would like to know if there is a way to order the coefficients plotted that does not entail manually ordering the estimates when writing the coef command. "sort(,descending)" doesn't work, because it's different models. Is there another way?

    Code:
    forvalues i == 1/17 {
    quietly eststo country_`i': reg employed y2019_1 age age2 Ledu Medu Hedu [pw=coeff] if over24==1 & male==0&cntname2==`i', r
    }
    
    coefplot country_1 || country_2 || country_3 || country_4 || country_5 || country_6 || country_7 || country_8 || country_9 || country_10 || country_11 || country_12 || country_13 || country_14 || country_15 || country_16 || country_17 , keep(y*) bycoefs recast(bar)
    Click image for larger version

Name:	image_24660.png
Views:	1
Size:	351.7 KB
ID:	1636032
    Last edited by Irene Solmone; 11 Nov 2021, 03:45.
Working...
X