I am new to Stata and I am trying to calculate the proportion of women in different regions using the mean function, but the command doesn’t seem to support weights. How can I do this with pweights?
Code:
egen WOMEN=mean(SEX), by(REGION)
Thank you.
0 Response to Egen with weights?
Post a Comment