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
Loop to extract coefficients from regressions of increasing horizons and plotting themHi I want to construct a loop that extracts the slope coefficients on two explanatory variables fro…
Merging datasets based on recorded timeHello, I have a data file that contains activities done during certain times (for the purpose of th…
Macro string manipulationHi I am trying to produce a one line summary of a categorical variable using Ben Jann's fre command…
how to check and address endogeneity issueHi.. I have one problem to identify and address endogeneity issue. I want to check relationship bet…
Creating tables and graphs on data relating to both the survey respondent and their partnerHi Statalist. I would appreciate a hand with how to create a scatterplot presenting data on both th…
Subscribe to:
Post Comments (Atom)
0 Response to Histogram with differences in shares
Post a Comment