Chapter Contents |
Previous |
Next |
Details of 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 15.5.1:
proc factex; factors block / nlev=4; output out=blocks block nvals=(1 2 3 4); run; factors trt / nlev=6; output out=rcbd designrep=blocks randomize (101) trt cvals=('A' 'B' 'C' 'D' 'E' 'F'); run; 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.
Output 15.5.1: A Randomized Complete Block Design
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.