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

st: RE: how to create case id number


From   "David Harrison" <david.harrison@icnarc.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: how to create case id number
Date   Fri, 29 Apr 2005 15:49:28 +0100

Are you looking for anything more complicated than

gen id=_n

?

David

-----Original Message-----
From: Seok-Woo Kwon [mailto:swkwon@uky.edu]
Sent: 29 April 2005 15:39
To: statalist@hsphsun2.harvard.edu
Subject: st: how to create case id number


Is there a STATA command that automatically generates a case id for each
record in a dataset?

Thank you for your help in advance.

Seok-Woo Kwon
Email: swkwon@uky.edu

*
*   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/



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index