Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Oduwo, Geofrey" <GOduwo@ke.cdc.gov> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: FW: Generating a counter variable |
Date | Mon, 22 Nov 2010 13:57:48 +0300 |
Hallo, I have a dataset and want to generate a variable that counts the study IDs each time they appear and starts the counting again each time a new study ID appears. How do I do this in stata. Thanks ========================================== Geofrey Oyoo Oduwo Data Analyst TB Research Branch KEMRI/CDC Research & Public Health Collaboration Mobile No: 0725 817 836 or 0750 371 472 Email GOduwo@ke.cdc.gov or oyoogeofrey@yahoo.com * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/