LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 2 Nov 2005 09:01:53 -0800
Reply-To:     "data _null_;" <datanull@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "data _null_;" <datanull@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: generating patient list
Comments: To: sas-l@uga.edu
In-Reply-To:  <1130945949.127291.178790@g43g2000cwa.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"

How about making the pid after making a randomized plan. I used PROC PLAN with 4 treatments in blocks of 5 to get to 20 subjects per site.

proc plan noprint seed=23456; factors site=100 ordered block=5 ordered trtgrp=4 random; output out=work.plan; run; quit; data work.plan; set work.plan; pid = put(site,z3.)||'-'||put(_n_,z4.); run; proc print; run;


Back to: Top of message | Previous page | Main SAS-L page