Hello,
I am using Stata 15 to analyze survey income data by wealth quintile for households. Two questions:
1. Do I use the sampling weight with xtile? This seems right, but it seems odd because I am also weighing the pie graph.
2. What svy command can I use to just show me the proportion, total value, mean, and range by wealth quintile?
Here is my code so far.
Thanks much. Robert
HTML Code:
xtile quintile_totalincome = hhtotalincome [pweight = HHweight], n(5) graph pie totalincome_positive_values_US [pweight = HHweight] if HHhead==1, over(quintile_totalincome) svyset psu [pweight= HHweight]
Comment