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
marginal results for melogitI am modeling a proportion (numerator/denominator where the denominator represents the number of tri…
Counting unique observations in a complicated data structureDear Statalist, I have a panel data on the level of towns and their administrative parts. Each town…
Trouble plotting standard deviation - Sigma convergenceHi, I am new to Stata and have been trying to plot the standard deviation of my whole sample and th…
Graph combine formattingDear All, I am trying to combine coefficient plots from 3 different regressions. My data looks as f…
Question about using if flag + tab togetherHi all, I am trying to create a Table 1 using Medicare claims to compare demographics among people …
Subscribe to:
Post Comments (Atom)
0 Response to Graph with two concentration indices using CONINDEX
Post a Comment