Previous Page | Next Page

The FACTEX Procedure

Example 7.1 Completely Randomized Design

[See FACTEX8 in the SAS/QC Sample Library]An experimenter wants to study the effect of cutting speed (Speed) on the surface finish of a component. He considers testing the components at five levels of cutting speed (100, 125, 150, 175, and 200) and decides to test five components at each level.

The design used is a single-factor completely randomized design with five levels and 25 runs. The following statements generate the required design:

proc factex;
   factors Speed / nlev=5;
   size design=25;
   output out=SurfaceExperiment randomize        
      Speed nvals=(100 125 150 175 200);
run;
proc print data=SurfaceExperiment;
run;

The RANDOMIZE option in the OUTPUT statement randomizes the run order. The design saved in the data set SurfaceExperiment is displayed in Output 7.1.1.

Output 7.1.1 A Completely Randomized Design
Obs Speed
1 125
2 200
3 150
4 125
5 200
6 150
7 175
8 175
9 100
10 175
11 200
12 175
13 125
14 100
15 150
16 100
17 200
18 150
19 125
20 100
21 100
22 175
23 125
24 200
25 150

If you are working through this example on your computer, you might find a different run order in your output. This is due to the difference in the seed value of the random number generator. You can specify a seed value with the RANDOMIZE option. For syntax, see Randomize Design.

Previous Page | Next Page | Top of Page