I'm using SAS 9.4. I have to randomize 100 patients to 2 treatments A and B, considering 2 strata: stratum 1 with 2 levels (a and b) and stratum 2 with 3 levels (x, y and z). But these strata present different levels proportions. For example: a 48% and b 52% and x 75%, y 20% and z 5%. How can I put in the attached program these percentages?. In the next code I considered same proportions for all levels of strata but I would like to consider these proportions. Could you be so kind to indicate me how to incorporate changes in order to consider the different proportions in the levels of the strata? * Code (considering same proportions on the different levels): proc plan seed= 12345678; factors strat1=2 ordered strat2=3 ordered blocks=9 ordered bsize=2 ordered ; treatments trt=2; output out=rlist1; run; quit; data random; length treatment $ 11 CG $ 11 mmse $ 11; set rlist1; If trt in (1) then treatment = 'A'; else if trt in (2) then treatment = 'B'; If strat1 =1 then mmse = 'a'; else if strat1 =2 then mmse = 'b'; If strat2 =1 then cg = 'x'; If strat2 =2 then cg = 'y'; If strat2 =3 then cg = 'z'; subjid = put(_n_, z3.); run; proc report data=random nowindows; column mmse cg subjid treatment; define CG / "Setting" style=[just=C cellwidth=15%]; define MMSE / "Setting" style=[just=C cellwidth=15%]; define subjid / "Subject ID" style=[just=C cellwidth=15%]; run; Thank you in advance, Jorge77
... View more