I working on Stata 15 with survey data using pweights. I have created the bar graph below showing the mean proportion of people reporting an illness and the proportion of those reporting an illness that sought care by quintile for a sub-population. I used the following code:
[ATTACH]temp_14615_1558684141658_160[/ATTACH]
Code:
graph bar (mean) Illness_YN (mean) Consult_illness_YN [pweight = weightperill] if subpop ==2, over(quintile_expend2) blabel(bar) scheme(s2manual)
I am also looking to convert those bar labels to %. Thanks much.
0 Response to new var calculated from group means of survey data
Post a Comment