Dear Statalist
I am trying to plot the mean of one variable for each decile of another variable. For example, I have wealth deciles:
and the mean ANC visits for women in each decile:
I want to visualize the mean number of ANC visits for women in each wealth decile. How would I implement this in Stata?
Thank you for your time and help!
I am trying to plot the mean of one variable for each decile of another variable. For example, I have wealth deciles:
Code:
xtile deci = wealth, nq(10)
Code:
bysort deci: egen mean_visits = mean(ANC)
Thank you for your time and help!
Comment