Hi Everyone,
I am trying to create a graph with two concentration indices using the CONINDEX command, plotting out-of-pocket expenditures against households ranked by household expenditure (see example graph below). I used the following two commands to create the two graphs for 2014 and 2019:
conindex ooph if year==2014, rankvar(tot_hhexp) truezero svy graph ytitle(Cumulative share of household OOPE) xtitle(Cumulative share of households ranked by THCE)
conindex ooph if year==2019, rankvar(tot_hhexp) truezero svy graph ytitle(Cumulative share of household OOPE) xtitle(Cumulative share of households ranked by THCE)
Does anyone have any advice for how these two graphs can be merged into one single graph displaying the two concentration indices for the two years as shown in the third graph below?
I have also tried the following command: conindex ooph, rankvar(tot_hhexp) truezero svy graph ytitle(Cumulative share of household OOPE) xtitle(Cumulative share of households ranked by THCE) compare(year) though while this gives me two separate concentration indices, it unfortunately gives me one single graph, merging data for the two years.
I would be grateful for any ideas!
Thank you so much in advance,
Hannah
Array Array
Array
Related Posts with Graph with two concentration indices using CONINDEX
Convert variables to numeric results in data loss when a regression is runDear all, A dataset with 11 variables was imported to STATA using File -> Import Excel spreadshe…
Which family and link for GLM?Hello! I am trying to find the right model that matches the distribution of my data. I use cross-se…
Creating multiple bootstrapped samplesI'd like to create, say, B=100 bootstrapped samples of a dataset. I was a little surprised to learn …
Help needed to estimate a Panel (Longitudinal) Multinomial Logit ModelDear Stata Users, Before explaining my problem, I should say that I have tried Stata's femlogit, cm…
Exporting regressions to excel Effect of various farm practices on crop yield (Kg/Acre) Lentil Lentil green gram gree…
Subscribe to:
Post Comments (Atom)
0 Response to Graph with two concentration indices using CONINDEX
Post a Comment