David,
honestly, nothing. Maybe its just too easy...
But how would you influence how the values will be ordered for the numbering process? When using the bysort-thing, you can decide how the values will be ordered before the id is attached to them. When using egen's group function, do you have to sort the data before?
Regards,
sebastian
>
> While both of the suggestions so far work fine, what is wrong
> with just:
>
> egen id=group(firstname lastname dob)
>
> David
> [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/