Re: cluster average of women's working status [message #13803 is a reply to message #13800] |
Thu, 28 December 2017 15:55 |
Reduced-For(u)m
Messages: 292 Registered: March 2013
|
Senior Member |
|
|
I think this is a question for the Stata forum - but one suggestion would be to use "egen , by()" commands. I'm assuming you have 0/1 variables for "working". In that case, first, compute the cluster-level denominator, which is N for that cluster (I think). Then generate the cluster-level numerator by adding up the 0's and 1's in the cluster for everyone. Then, for each person, use as the numerator "total - own" and for the denominator "total - 1".
Something like that should work...but again, the Statalist may be a better resource for you.
|
|
|