Previous Page | Next Page

The FACTEX Procedure

Example 7.5 Randomized Complete Block Design

[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.

Output 7.5.1 A Randomized Complete Block Design
Fold-Over Design

Obs Block Treatment
1 1 B
2 1 E
3 1 F
4 1 A
5 1 D
6 1 C
7 3 B
8 3 A
9 3 C
10 3 F
11 3 E
12 3 D
13 2 A
14 2 E
15 2 B
16 2 D
17 2 C
18 2 F
19 4 C
20 4 D
21 4 A
22 4 F
23 4 E
24 4 B

Previous Page | Next Page | Top of Page