Date: Tue, 15 Jan 2008 12:54:05 -0500
Reply-To: Kay <teka97@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Kay <teka97@GMAIL.COM>
Subject: numbering readmissions
hello--
here is some sample data:
id admit discharge
1 1/1/01 1/10/01
1 1/15/01 1/20/01
1 1/30/01 1/31/01
I would like to create a variable that denotes a "0" for the initial
admission (1/1/01) and then a "1" for the next admission, and the a "2" for
the next admission. I'm really not certain how to do this properly. Any
help, much appreciated.
|