Hello,
I have the following problem in Stata:
I want to construct a histogram showing the difference in the proportions in terms of a risk index between two groups (Stayers, Migrants).
In the end, I want to construct a figure like the one I attached.
I know how to create the first figure:
. twoway (histogram risk if group=="Stayers") (histogram risk if group=="Migrants")
But I just don't know how to show the difference in fractions....
I've been working on this problem for some time, but I'm not getting anywhere... I would be very grateful for every tip!
Thanks in advance!
Related Posts with Histogram with differences in shares
Interaction terms in collapsed data.Dear All, I have individual level data on poisonings in the 50 US states and I want to study the im…
Question analysing data - counting different values of variables if another variable has a set valueHi there I have a Dataset of lots of observations (People) with lots of variables. For example I hav…
stsplit at specific date which is different for every observationHi there, I'm trying to asses if is there an increased risk of virological failure in one year follo…
Title size in coefplot graphsDear Stata users, I am using user-written "coefplot" function to plot coefficients and standard err…
Recover population size by groupHi, I am trying to construct a "population" variable from household survey data. Data is collected …
Subscribe to:
Post Comments (Atom)
0 Response to Histogram with differences in shares
Post a Comment