Date: Fri, 16 Apr 2004 01:34:42 GMT
Reply-To: "(2B) || !(2B) Arin Chaudhuri" <spam@SPAM.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "(2B) || !(2B) Arin Chaudhuri" <spam@SPAM.NET>
Organization: Road Runner - NC
Subject: Re: Creating Dummy Treatment Groups
Content-Type: text/plain; charset=us-ascii; format=flowed
Steve Zelasky wrote:
> We are on XP with 8.2.
>
> Our study is still blinded. We have 3 treatment groups, all values for RXCD are missing in the dataset, how can I assign dummy treatment codes(1,2,3) randomly to all the patients in a given dataset.
>
> Thanks.
>
One more method
data new;
set old;
treatment=RANTBL(0,1/3,1/3);
run;
|