Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: sorting a bar chart by two variables


From   "Likosky, Donald" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: sorting a bar chart by two variables
Date   Tue, 12 Nov 2013 18:37:57 +0000

Nick,

Thank you.

It almost gets what I need.

My initial attempt at the egen was to stratify it by "sitelabel".

Each bar represents the percentage of cases within each hospital that had patients at mild hypothermia (lowest3c2) or normothermia (lowest3c3).
 
What I would like to show is the range of practices across hospitals, with the lowest total percentage on the left, and the highest total percentage on the right. Stated another way, the leftmost center would have a total of say 10% (composed of the total of lowest3c2 and lowest3c3) , and the rightmost bar be a total of 100%.

I don't see that I can use a "by" option with the "egen group" command.

D
----


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index