Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: FW: Generating a counter variable

From   "Oduwo, Geofrey" <>
To   <>
Subject   st: FW: Generating a counter variable
Date   Mon, 22 Nov 2010 13:57:48 +0300


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.


Geofrey Oyoo Oduwo
Data Analyst
TB Research Branch
KEMRI/CDC Research & Public Health Collaboration
Mobile No: 0725 817 836 or 0750 371 472
Email or

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index