Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: RE: how to obtain a unique identifier from strings


From   Caleb Southworth <[email protected]>
To   [email protected]
Subject   Re: st: Re: RE: how to obtain a unique identifier from strings
Date   Fri, 4 Nov 2005 08:02:53 -0800 (PST)

On Fri, 4 Nov 2005, Michael Blasnik wrote:

:Actually, that code would give you the count for each name, not assign
:unique identifiers.  There are many ways to get what you want, but egen
:id=group(name) is probably the easiest.

With the caveat that names themselves must be unqiue.

Caleb
[email protected]
University of Oregon Sociology
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index