Using SAS 9.4
I am running the following code to randomize 273 units into 3 groups with 91 units per groups. However, is it possible to set up the distribution in such a way that every 50 units is evenly distributed among the 3 groups?
meaning the first 50 units would have group 1-17 units, group 2-17 units, group 3-16 units. Thank you for any help
data Unrandomized;
do unit=1 to 273;
if (unit <= 91) then Group=1;
else if (91 < unit <= 182) then Group=2;
else Group=3;
output;
end;
run;
/* Randomize the design */
proc plan seed=22042;
factors unit=273;
output data=Unrandomized out=Randomized;
run;
proc sort data=Randomized;
by unit;
proc print data=Randomized;
run;