












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













First order model y = β 0 + β 1 x 1 + β 2 x 2 + · · · + βkxk (3)
Interaction model y = β 0 +
∑^ k
i=
βixi +
∑ ∑k
i<j
βij xixj (4)
Second order model y = β 0 +
∑^ k
i=
βixi +
∑ ∑k
i<j
βij xixj +
∑^ k
i=
βiix^2 i (5)
(i) Each factor has two levels (coded −1 and +1). (ii) The 2k^ experimental runs are based on the 2k^ combinations of the ±1 factor levels.
Factor Level Coded Replicate Sum of n Combination Levels 1 2 · · · n Replicates A low , B low − 1 − 1 xxx xxx · · · xxx (1) = y 11 · A high, B low +1 − 1 xxx xxx · · · xxx a = y 21 · A low , B high −1 +1 xxx xxx · · · xxx b = y 12 · A high, B high +1 +1 xxx xxx · · · xxx ab = y 22 ·
a and ab correspond to A+^ and (1) and b correspond to A−. b and ab correspond to B+^ and (1) and a correspond to B−.
— Average effect of Factor A, denoted A, is
A = yA+ − yA− = =
2 n
[ab + a − b − (1)].
— Average effect of Factor B, denoted B, is
B = yB+ − yB− = =
2 n
[ab − a + b − (1)].
— Interaction effect between Factors A and B, denoted AB, is the difference between (i) the average change in response when the levels of Factor A are changed given Factor B is at its high level and (ii) the average change in response when the levels of Factor A are changed given Factor B is at its low level:
AB = (yA+B+ − yA−B+ ) − (yA+B− − yA−B− )
= =
ab − a − b + (1) 2 n Note: The results would be the same if we switched the roles of A and B in the definition:
AB = (yA+B+ − yA+B− ) − (yA−B+ − yA−B− )
= =
ab − a − b + (1) 2 n
Sums of Squares for A, B and AB.
ΓA = ab + a − b − (1) ΓB = ab − a + b − (1) ΓAB = ab − a − b + (1)
The Regression Model
y = β 0 + β 1 x 1 + β 2 x 2 + β 12 x 1 x 2 + .
b 0 =
ab + a + b + (1) 4 n
or b 0 = y
b 1 =
4 n
ab + a − b − (1) 4 n
or b 1 = A/ 2
b 2 =
4 n
ab + b − a − (1) 4 n
or b 2 = B/ 2
b 12 =
4 n
ab + (1) − a − b 4 n
or b 2 = AB/ 2
̂ y = 23.83125 + 8. 31875 x 1 + 3. 76875 x 2 + 4. 35625 x 1 x 2
where (x 1 , x 2 ) are the coded levels of factors A and B.
Factorial Effect Sum of I A B C AB AC BC ABC replicates
Average effect of Factor A, denoted A, is
A = yA+ − yA− =
(a + ab + ac + abc) 4 n
(1) + b + c + bc 4 n =
4 n
[a + ab + ac + abc − (1) − b − c − bc].
Average effect of Factor B, denoted B, is
B = yB+ − yB− =
(b + ab + bc + abc) 4 n
(1) + a + c + ac 4 n =
4 n
[b + ab + bc + abc − (1) − a − c − ac].
Average effect of Factor C, denoted C, is
C = yC+ − yC− =
(c + ac + bc + abc) 4 n
(1) + a + b + ab 4 n =
4 n
[c + ac + bc + abc − (1) − a − b − ab].
Two-factor interaction effect between Factors A and B, denoted AB, is
ab + abc − a − ac 4 n
b + bc − (1) − c 4 n
abc + ab + c + (1) − a − ac − bc − b 4 n
Two-factor interaction effect between Factors A and C, denoted AC, is
ac + abc − a − ab 4 n
c + bc − (1) − b 4 n
abc + ac + b + (1) − ab − a − bc − c 4 n
Two-factor interaction effect between Factors B and C, denoted BC, is
bc + abc − b − ab 4 n
c + ac − (1) − a 4 n
abc + bc + a + (1) − ab − b − ac − c 4 n
Three-factor interaction effect between Factors A, B and C, denoted ABC, is the average difference between the AB interaction for the two different levels of C. That is,
(abc − bc) − (ac − c) 4 n
(ab − b) − (a − (1)) 4 n =
abc + a + b + c − ab − ac − bc − (1) 4 n
associated with that effect is SS =
Estimation of Two-Factor Interaction Effects
Estimation of the Three-Factor Interaction Effect
The Regression Model
y = β 0 + β 1 x 1 + β 2 x 2 + β 3 x 3 + β 12 x 1 x 2 + β 13 x 1 x 3 + β 23 x 2 x 3 + β 123 x 1 x 2 x 3 + . (6)
b 0 = y b 1 = A/ 2 b 2 = B/ 2 b 3 = C/ 2
b 12 = AB/ 2 b 13 = AC/ 2 b 23 = BC/ 2 b 123 = ABC/ 2
4.2.1 A 2^3 Design Example
An engineer is interested in the effects of cutting speed (A), tool geometry (B), and cutting angle (C) on the life (in hours) of a machine tool. Two levels of each factor are chosen, and three replicates of a 2^3 design are run. The results are summarized below:
Analyze the data (with lack-of-fit tests) assuming the following 4 models:
Note there are df for pure error.
yijkl = μ + αi + βj + γk + ijkl (i = ± 1 , j = ± 1 , k = ± 1 , l = 1, 2 , 3)
yi = β 0 + β 1 x 1 i + β 2 x 2 i + β 3 x 3 i + i
Note that the parameter estimates are 1/2 of those from the fixed effects in Model 1.
MODEL 1: ADDITIVE FIXED EFFECTS MODEL The GLM Procedure
Dependent Variable: Y
MODEL 1: ADDITIVE FIXED EFFECTS MODEL The GLM Procedure
Dependent Variable: Y
Source DF
Sum of Squares Mean Square F Value Pr > F Model 3 1051.500000 350.500000 6.72 0. Error 20 1043.833333 52. Corrected Total 23 2095.
R-Square Coeff Var Root MSE Y Mean 0.501829 17.69236 7.224380 40.
Source DF Type III SS Mean Square F Value Pr > F A 1 0.6666667 0.6666667 0.01 0. B 1 770.6666667 770.6666667 14.77 0. C 1 280.1666667 280.1666667 5.37 0.
MODEL 2: FIRST ORDER REGRESSION MODEL The REG Procedure Model: MODEL Dependent Variable: Y
MODEL 2: FIRST ORDER REGRESSION MODEL The REG Procedure Model: MODEL Dependent Variable: Y
Number of Observations Read 24 Number of Observations Used 24
Analysis of Variance
Source DF
Sum of Squares
Mean Square F Value Pr > F Model 3 1051.50000 350.50000 6.72 0. Error 20 1043.83333 52. Lack of Fit 4 561.16667 140.29167 4.65 0. Pure Error 16 482.66667 30. Corrected Total 23 2095.
Root MSE 7.22438 R-Square 0. Dependent Mean 40.83333 Adj R-Sq 0. Coeff Var 17.
Parameter Estimates
Variable DF
Parameter Estimate
Standard Error t Value Pr > |t|
Variance Inflation Intercept 1 40.83333 1.47467 27.69 <.0001 0 X1 1 0.16667 1.47467 0.11 0.9111 1. X2 1 5.66667 1.47467 3.84 0.0010 1. X3 1 3.41667 1.47467 2.32 0.0312 1.
MODEL 1: ADDITIVE FIXED EFFECTS MODEL The GLM Procedure nt Variable: Y
MODEL 1: ADDITIVE FIXED EFFECTS MODEL The GLM Procedure nt Variable: Y
Parameter Estimate
Standard Error t Value Pr > |t| A 0.3333333 2.94934079 0.11 0. B 11.3333333 2.94934079 3.84 0. C 6.8333333 2.94934079 2.32 0.
MODEL 1: ADDITIVE FIXED EFFECTS MODEL
The GLM Procedure
MODEL 1: ADDITIVE FIXED EFFECTS MODEL
The GLM Procedure
Y Level of A N Mean Std Dev -1 12 40.6666667 11. 1 12 41.0000000 7.
Y Level of B N Mean Std Dev -1 12 35.1666667 7. 1 12 46.5000000 8.
Y Level of C N Mean Std Dev -1 12 37.4166667 10. 1 12 44.2500000 7.
MODEL 3: INTERACTION FIXED EFFECTS MODEL
The GLM Procedure
MODEL 3: INTERACTION FIXED EFFECTS MODEL
The GLM Procedure
Y Level of A N Mean Std Dev -1 12 40.6666667 11. 1 12 41.0000000 7.
Y Level of B N Mean Std Dev -1 12 35.1666667 7. 1 12 46.5000000 8.
Y Level of A
Level of B N Mean Std Dev -1 -1 6 34.1666667 9. -1 1 6 47.1666667 10. 1 -1 6 36.1666667 5. 1 1 6 45.8333333 5.
Y Level of C N Mean Std Dev -1 12 37.4166667 10. 1 12 44.2500000 7.
Y Level of A
Level of C N Mean Std Dev -1 -1 6 32.8333333 9. -1 1 6 48.5000000 7. 1 -1 6 42.0000000 9. 1 1 6 40.0000000 3.
The GLM ProcedureThe GLM Procedure
Y Level of A N Mean Std Dev -1 12 40.6666667 11. 1 12 41.0000000 7.
Y Level of B N Mean Std Dev -1 12 35.1666667 7. 1 12 46.5000000 8.
Y Level of A
Level of B N Mean Std Dev -1 -1 6 34.1666667 9. -1 1 6 47.1666667 10. 1 -1 6 36.1666667 5. 1 1 6 45.8333333 5.
Y Level of C N Mean Std Dev -1 12 37.4166667 10. 1 12 44.2500000 7.
Y Level of A
Level of C N Mean Std Dev -1 -1 6 32.8333333 9. -1 1 6 48.5000000 7. 1 -1 6 42.0000000 9. 1 1 6 40.0000000 3.
MODEL 3: INTERACTION FIXED EFFECTS MODEL
The GLM Procedure
Y Level of B
Level of C N Mean Std Dev -1 -1 6 30.3333333 7. -1 1 6 40.0000000 3. 1 -1 6 44.5000000 8. 1 1 6 48.5000000 7.
MODEL 2: FIRST ORDER REGRESSION MODEL
The REG Procedure Model: MODEL Dependent Variable: Y
MODEL 2: FIRST ORDER REGRESSION MODEL
The REG Procedure Model: MODEL Dependent Variable: Y
Fit Diagnostics for Y
Adj R-Square 0.
R-Square 0.
MSE 52.
Error DF 20
Parameters 4
Observations 24
Proportion Less
0.0 0.4 0.
Residual
0.0 0.4 0.
Fit–Mean
0
5
10
-20 -10 0 10 20 Residual
0
5
10
15
20
25
30
Percent
0 5 10 15 20 25 Observation
Cook's D
20 30 40 50 60 Predicted Value
20
30
40
50
60
Y
-2 -1 0 1 2 Quantile
0
5
10
Residual
0.20 0.25 0. Leverage
0
1
2
RStudent
35 40 45 50 Predicted Value
0
1
2
RStudent
35 40 45 50 Predicted Value
0
5
10
Residual
MODEL 4: INTERACTION REGRESSION MODEL
The REG Procedure Model: MODEL Dependent Variable: Y
MODEL 4: INTERACTION REGRESSION MODEL
The REG Procedure Model: MODEL Dependent Variable: Y
Fit Diagnostics for Y
Parameters 7
Observations 24
Fit–Mean Residual
0
10 20
30
ercent
0 5 10 15 20 25 Observation
Cook's D
20 30 40 50 60 Predicted Value
20
30
40
50
60
Y
-2 -1 0 1 2 Quantile
0
5
10
Residual
0.3 0.4 0.5 0. Leverage
0
1
2
RStudent
30 40 50 Predicted Value
0
1
2
RStudent
30 40 50 Predicted Value
0
5
10
Residual
SAS Code for the 23 Design Example
2 .24227067 =
M SE/ 2 n =
ODS PRINTER PDF file=’C:\COURSES\ST578\SAS\TWO3.PDF’; OPTIONS NODATE NONUMBER;
OPTIONS PS=54 LS=76 NODATE NONUMBER;
DATA IN; DO C = -1 TO 1 BY 2; DO B = -1 TO 1 BY 2; DO A = -1 TO 1 BY 2; DO REP = 1 TO 3; INPUT Y @@; X1=A; X2=B; X3=C; X1X2 = X1X2; X1X3 = X1X3; X2X3 = X2*X3; OUTPUT; END; END; END; END; LINES; 22 31 25 32 43 29 35 34 50 55 47 46 44 45 38 40 37 36 60 50 54 39 41 47 ; PROC GLM DATA=IN PLOTS=NONE; CLASS A B C; MODEL Y = A B C / SS3; MEANS A B C; ESTIMATE ’A’ A -1 1; ESTIMATE ’B’ B -1 1; ESTIMATE ’C’ C -1 1; TITLE ’MODEL 1: ADDITIVE FIXED EFFECTS MODEL’;
PROC REG DATA=IN PLOTS=(DIAGNOSTICS); MODEL Y = X1 X2 X3 / LACKFIT VIF; TITLE ’MODEL 2: FIRST ORDER REGRESSION MODEL’;
PROC GLM DATA=IN PLOTS=NONE; CLASS A B C; MODEL Y = A|B|C@2 / SS3 ; MEANS A|B|C@2; ESTIMATE ’A’ A -1 1; ESTIMATE ’B’ B -1 1; ESTIMATE ’C’ C -1 1; ESTIMATE ’AB’ AB 1 -1 -1 1 / DIVISOR=2; ESTIMATE ’AC’ AC 1 -1 -1 1 / DIVISOR=2; ESTIMATE ’BC’ BC 1 -1 -1 1 / DIVISOR=2;
PROC REG DATA=IN PLOTS=(DIAGNOSTICS); MODEL Y = X1 X2 X3 X1X2 X1X3 X2X3 / LACKFIT VIF; TITLE ’MODEL 4: INTERACTION REGRESSION MODEL’; RUN;
The GLM Procedure
Dependent Variable: YIELD
Sum of Source DF Squares Mean Square F Value Pr > F
Model 15 291.7500000 19... Error 0 0.. Corrected Total 15 291.
R-Square Coeff Var Root MSE YIELD Mean 1.000000.. 17.
Type III Mean Source DF SS Square F Value Pr > F
TIME 1 81.00 81... CONC 1 1.00 1... TIMECONC 1 2.25 2... PRESSURE 1 16.00 16... TIMEPRESSURE 1 72.25 72... CONCPRESSURE 1 0.25 0... TIMECONCPRESSURE 1 4.00 4... TEMP 1 42.25 42... TIMETEMP 1 64.00 64... CONCTEMP 1 0.00 0... TIMECONCTEMP 1 2.25 2... PRESSURETEMP 1 0.00 0... TIMEPRESSURETEMP 1 0.25 0... CONCPRESSURETEMP 1 2.25 2... TIMECONCPRESS*TEMP 1 4.00 4...
Standard Parameter Estimate Error t Value Pr > |t|
A TIME 4.... B CONC 0.... C PRESSURE 2.... D TEMP 3.... AB TIMECONC -0.... AC TIMEPRES -4.... AD TIMETEMP 4.... BC CONCPRES 0.... BD CONCTEMP 0.... CD PRESTEMP 0.... ABC TIMECP 1.... ABD TIMECT 0.... ACD TIMEPT -0.... BCD CPTEMP -0.... ABCD TCPT 1....
^^^^^^^^^^^ Make a NPP of these estimates
Analysis I: Pooling high order interactions
Analysis II: Pooling terms involving factor B = concentration (CONC)