Functions > Design of Experiments > Factor Screening > Example: Calculating Effects
Example: Calculating Effects
Use the quickscreen and effects functions to calculate the effects of factors, factor levels, blocking, and interactions in design experiments.
1. Call the fullfact function to create a design matrix to test the nickel plating process used to manufacture high-technology disks for computer disk drives. Factor A stands for the process temperature (16°C and 32°C) and factor B stands for the process time (4s and 12s).
Click to copy this expression
2. Call the block function to divide the design matrix into two blocks to carry out the experiment in two separate labs.
Click to copy this expression
You can also choose a specific factor or interaction to block:
Click to copy this expression
3. Record the thickness readings in matrix Y with one row per run and one column per replicate.
Click to copy this expression
For later reference, use the mean function to define r1, r2, r3, and r4 to be the average thickness reading for each run.
Click to copy this expression
Effects of Factors
1. Call the quickscreen function to calculate the effect of each factor.
Click to copy this expression
According to the blocked design matrix K, factor A is at its low level for "Run 2" and "Run 3", and at its high level for "Run 1" and "Run 4”.
2. Calculate the low average response (lar) and the high average response (har) for the process temperature factor A.
Click to copy this expression
Click to copy this expression
3. Calculate the temperature effect (te) defined as the difference between the high and the low average responses of factor A.
Click to copy this expression
4. Compare the results returned by the quickscreen function for factor A with the above calculated results.
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
5. Use the effects function to calculate the effect of each factor level.
Click to copy this expression
The effects of the factor levels are calculated about the overall mean of the results:
Click to copy this expression
6. Calculate the effect returned for the low and high levels of factor A.
Click to copy this expression
Click to copy this expression
The difference between the low level effect and the high level effect is the factor effect calculated by the quickscreen function. This is true for factors having two levels only.
Click to copy this expression
Click to copy this expression
Effect of Blocking
1. Add a third argument to the effects function to calculate the blocking effect.
Click to copy this expression
The block number is defined in the "Block" column of the design matrix K.
2. Calculate the blocking effect.
The blocking effect is calculated in the same way as the level effects of factor A above.
For "Block 1", take the difference between the mean of the first two rows and the overall mean of the results:
Click to copy this expression
For "Block 2", take the difference between the mean of the last two rows and the overall mean of the results:
Click to copy this expression
The difference between the "Block 1" and the "Block 2" effects is the blocking effect calculated by the quickscreen function. This is true for design matrices having two blocks only.
Click to copy this expression
Click to copy this expression
Effects of Interactions
1. Add a third argument to the quickscreen function to view the effect of interaction AB.
Click to copy this expression
For each run, the levels of interaction AB are determined by the product of the levels of A and B. For "Run 1", the levels of A and B are -1 and 1, therefore the level of AB is -1.
Click to copy this expression
Click to copy this expression
2. Change the third argument of the effects function to view the level effect of interaction AB.
Click to copy this expression
Reference
Schmidt, S. and Launsby, R., Understanding Industrial Designed Experiments, Colorado Springs: Air Academy Press & Associates, 1994, pp. 2–8.
Was this helpful?