Announcement

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

  • how to add region mean in graphs at the country level?

    I have a cross section of health spending (variable called the_per_cap_mean) for 188 different countries (variable Country) for the year of 2015. I also have dummy variables of regions (e.g. Latin America, Europe etc). I would like to run a code to give me a ranking of the countries with the highest to lowest health spending (variable called the_per_cap_mean). I would also like to add the regions means to the graph. How should I do so if the rows are in the Country level? Should I add some rows for the region level?

    This is the code I have so far:

    Code:
     
     graph bar the_per_cap_mean, /// over(Country, sort(the_per_cap_mean) descending) /// blabel(total, orientation(vertical) size(vsmall))
Working...
X