Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Creating chronological event numbers
From
Caroline Jackson <[email protected]>
To
[email protected]
Subject
st: Creating chronological event numbers
Date
Wed, 23 Mar 2011 09:41:16 +0000
Dear All,
I have a dataset, currently formatted long, which has multiple records
(admissions to hospital) per unique id (i.e. per person). I want to
create a new variable which uses the date of admission to assign a
chronological admission number (i.e. 1,2,3...) to each separate
person/id. So, effectively, I would end up with an event number for
each hospital admission for each person.
Please help
Caroline
*
* 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/