Dear all,
I am trying to draw concentration curves to see whether there is health inequality among male and female. However, results look odds to me and different as compared to others' work.
This is my dataset
where disease is a binary variable computed by totaling 11 chronic diseases in which value 0 indicates no disease and 1 otherwise; sex (0-female and 1-male); ses_cat is household wealth computed by using principle component analysis, ranging from poorest to richest (five quintiles).
Followings are my codes with disease variable:
I do not know why the curves are not smooth as shown by other papers. I even try to use a continuous variable but it still did not get it right (pdis is disability variable measured in continuous). Any help is much appreciated.
Best,
DL
I am trying to draw concentration curves to see whether there is health inequality among male and female. However, results look odds to me and different as compared to others' work.
This is my dataset
Code:
------------------ copy up to and including the previous line ------------------Code:* Example generated by -dataex-. To install: ssc install dataex clear input float(disease pdis) byte ses_cat float sex 1 0 1 0 1 0 1 1 1 12 2 1 0 0 1 0 1 4 1 0 1 6 3 0 1 3 1 0 1 4 1 1 1 10 1 1 0 5 1 0 1 6 2 0 1 0 1 1 1 11 1 0 1 1 1 1 1 8 5 1 0 0 1 0 1 4 2 1 1 4 1 0 1 10 4 0 0 5 3 0 1 0 2 1 0 0 2 0 1 1 1 0 1 7 3 1 1 0 1 1 1 8 1 0 1 12 . 0 1 5 2 0 1 4 1 0 1 5 3 1 0 0 1 1 1 7 2 0 0 1 2 0 1 0 2 0 1 0 2 1 1 3 1 0 1 12 . 1 0 1 1 0 1 0 1 0 0 0 2 0 0 1 1 0 1 4 . 0 1 6 1 0 1 0 4 0 1 5 1 0 0 6 1 0 0 0 1 1 1 1 1 0 1 7 1 1 1 7 1 0 1 4 1 1 0 12 1 1 1 5 1 1 1 5 1 1 1 0 1 0 1 4 1 1 1 8 1 0 1 7 1 0 1 9 1 0 1 12 1 0 1 7 1 0 0 2 2 0 1 1 1 0 1 10 1 1 1 12 1 1 1 5 1 0 1 8 1 1 1 12 2 0 1 3 1 0 1 1 1 0 1 7 3 1 1 4 1 0 1 3 3 0 1 1 1 0 0 11 3 0 1 7 4 0 1 3 1 0 1 0 1 1 0 0 1 1 1 0 1 1 1 3 1 1 0 0 1 1 0 0 5 0 1 4 . 1 1 5 2 0 1 1 2 1 1 10 1 0 1 7 2 1 1 7 1 1 1 6 1 0 1 0 1 1 1 0 1 0 1 0 2 0 0 0 1 1 0 0 1 0 1 0 2 1 0 0 2 1 1 10 2 0 1 12 1 1 1 12 2 1 end label values disease disease label def disease 0 "No diseases", modify label def disease 1 " At least 1 diseases", modify label values ses_cat ses_cat label def ses_cat 1 "Lowest", modify label def ses_cat 2 "2nd", modify label def ses_cat 3 "3rd", modify label def ses_cat 4 "4th", modify label def ses_cat 5 "Highest", modify label values sex sex label def sex 0 "Female", modify label def sex 1 "Male", modify
Followings are my codes with disease variable:
Code:
glcurve disease, glvar(x) pvar(rank) sortvar(ses_cat) replace by(sex) split lorenz nograph ge rank2=rank label variable x_0 "conc curve Female" lab var x_1 "conc curve Male" lab var rank "cumul share of disease (poorest first)" lab var rank2 "line of equality" twoway (line x_0 rank , sort clwidth(medthin) clpat(solid) clcolor(orange)) /// (line x_1 rank, sort clwidth(medthin) clpat(longdash) clcolor("153 204 0")) /// (line rank2 rank , sort clwidth(medthin) clcolor(gray)) /// , ytitle(cumulative share of disease, size(medsmall)) /// yscale(titlegap(5)) xtitle(, size(medsmall)) legend(rows(5)) xscale(titlegap(5)) /// legend(region(lwidth(none))) plotregion(margin(zero)) ysize(5.75) xsize(5) plotregion(lcolor(none)) graph export "cc curves Male and Female.emf" , replace
Best,
DL
Comment