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
Changing datesHow can I change a date format in Stata for from this format 06/12/2021 to this format 06-12-2021 …
mean +/- 2 stdDear Statalist, I am dealing with a variable that it is in between 0-1 (taking any possible value wi…
Wald test for trendsHi! I'm new to STATA. I came across a paper that reported a Wald-test for trends p-value along with …
Mean return by[] excluding the return of the observation itselfHello all, I am having some difficulties with creating peer group returns using the data shown below…
Multiple regression tables in same word document with outreg2Is there any way where I can include multiple tables in the same word document using outreg2 or othe…
Subscribe to:
Post Comments (Atom)
0 Response to Graph with two concentration indices using CONINDEX
Post a Comment