Greetings,
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:

Figure 2 draft.gphNow, for each quintile I need to multiply the mean results for Illness_YN and Consult_illness_YN. I have made many attempts using egen, but cannot figure out how to apply pweights. I welcome any suggestions.
I am also looking to convert those bar labels to %. Thanks much.
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:
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.
Comment