Hello, I am using SAS v 9.4 I want to generate a randomization scheme for an experimental trial with three treatment groups, ABC, BCD and CDF. I have a total of 150 subjects for the study and the study is carried out in 5 different study centers. My randomization is in the ratio 2:2:1, ie for every 5 subjects, the allocation scheme is 2 for ABC, 2 for BCD and 1 for CDF. I want to generate the randomization scheme that shows site number, subject number and treatment group. this is my code so far: title "RANDOMIZATION SCHEDULE FOR CLINICAL TRIAL"; Proc format; value treat 1='ABC' 2='BCD' 3='CDF'; run; proc plan seed=6457149; factors block=5 random treat=30 random/noprint; output out=first treat nvals=(1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3) random; run; data first(keep=pid block treat); set first; pid=put(_n_, z2.); run; proc sort; by pid; run; proc print noobs uniform split='*'; var pid treat; label pid="Subject*Number" treat="Treatment*Group"; Thanks
... View more