[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
AW: st: create unique variables
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?
> While both of the suggestions so far work fine, what is wrong
> with just:
> egen id=group(firstname lastname dob)
* For searches and help try: