The FACTEX Procedure |
[See FACTEX11 in the SAS/QC Sample Library]In a randomized complete block design (RCBD), each level of a "treatment" appears once in each block, and each block contains all the treatments. The order of treatments is randomized separately for each block. You can create RCBDs with the FACTEX procedure.
Suppose you want to construct an RCBD with six treatments in four blocks. To test each treatment once in each block, you need 24 experimental units. The following statements construct the randomized complete block design shown in Output 7.5.1:
proc factex; factors Block / nlev=4; output out=Blocks Block nvals=(1 2 3 4) randomize; run; factors Treatment / nlev=6; output out=RCBD designrep=Blocks randomize Treatment cvals=('A' 'B' 'C' 'D' 'E' 'F'); run; quit; proc print data=RCBD; run;
Note that the order of the runs within each block is randomized and that the blocks (1, 2, 3, and 4) are in a random order.
Copyright © SAS Institute, Inc. All Rights Reserved.