LOOPS

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

LOOPS

Gary Stevens-2
I can not figure this out.  I am not skilled with loops (obviously).

ID Readmissions Days  Readmit_seq
25 Primary         Primary         Primary
25 Transfer        Transfer        Transfer
25 readmit         <=30     readmit 1
25 readmit         <=30     readmit 2
25 readmit         91-180  readmit 3
25 Prime          > 180       Prime
25 readmit         <=30     readmit 1
25 Transfer        Transfer        Transfer
25 readmit         <=30     readmit 1
25 Prime          > 180      Prime
25 readmit         <=30     readmit 1

Hospital Readmissions after Elapsed Days
For patient ID number 25 I would like to number the readmissions sequentially
after each occurrence of 'Transfer' or 'Prime' and do this for each patient ID.
The fourth column gives the idea.
Many Thanks, Gary

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD