Date: Tue, 3 May 2005 18:00:28 -0700
Reply-To: neilanessa@MSN.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: neilanessa@MSN.COM
Organization: http://groups.google.com
Subject: Re: Drug Combo Seq. Number
In-Reply-To: <9BUde.20585$0X6.15153@edtnps90>
Content-Type: text/plain; charset="iso-8859-1"
Gag, you call either what Bruce or I sent elegant???
A slightly obscure, but so $%^ng cool it is truly evil and probably
even diabolical approach!
Drum Roll.......;-)
COMPUTE # = # + ANY(1, drug1<>lag(drug1) , drug2<>lag(drug2) ,
drug3<>lag(drug3) ,drug4<>lag(drug4) ).
compute combo=#.
Now that's elegant and simple....
Neila
|