That is,
egen idchild = group(caseid bidx), label
is an alternative.
n j cox wrote:
-search identifier, faq- points clearly to an FAQ and that
in turn recommends -egen, group()- as a solution to this need.
FAQ . . . . . . . . . . . . . . . . . . . . . . Creating group
identifiers
3/01 How do I create individual identifiers numbered
from 1 upwards?
http://www.stata.com/support/faqs/data/group.html
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/