Ersado, Lire
>
> I would like to generate a new variable whose observations
> are self-excluded
> averages of a variable of interest (as commonly done in obtaining
> group/community averages to address issues such as
> endogeneity). Is there a
> Stata routine that can be used to generate such a variable?
This sounds like what I call the "everybody
else" problem, on which I have bundled my thoughts
at
How do I create variables summarizing for each
individual properties of the other members of a group?
http://www.stata.com/support/faqs/data/members.html
with a big assist from Guillermo Cruces.
Nick
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/