07-05-2013 07:40 AM
I want to generate a randomization for clinical study.
In that each subject is having 12 sites (6 per/hand )(8 treated sites and 4 control(untreated) sites).
All 12 sites should be randomize but 4 control sites should split equally in 2 arm that is (2 control+6 treated per hand ), so i generated randomization by using proc plan, but in that 4 control sites are not splitting equally in to two hands some times its coming 3 per hand and 1 per hand. so how to sort this issue.
pls guide me..
proc plan seed=254642;
factors subj=24 ORDERED site=12;
treatments trt=12 random;
site cvals =('S1' 'S2' 'S3' 'S4' 'S5' 'S6' 'S7' 'S8' 'S9' 'S10' 'S11' 'S12') RANDOM
trt cvals=('1' '2' '3' '4' '5' '6' '7' '8' 'UT' 'UT' 'UT' 'UT') RANDOM;
proc transpose data= abc out=rand2 prefix=site;
by subj ;
var trt ;
proc print data=rand2 (drop=_name_);
07-05-2013 12:28 PM
If the restriction is 2 control sites per hand I think you will need to include a factor for hand and site(hand).