Hello,

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)
Sex is binary (0-man,1-woman) and region is categorical (0-25)

Thank you.