Professional Documents
Culture Documents
Manova Iii
Manova Iii
420
Two-way MANOVA
421
Two-way MANOVA
422
Two-way MANOVA
X1111 X1112 ... X111p
X1121 X1122 ... X112p
=
... ... ... ...
Xgbn1 Xgbn2 ... Xgbnp
µl µ2 ... µp
1 1 0 ... 0 α11 α12 ... α1p
1 1 0 ... 0
... ... ... ...
... ... ... ... ...
αg−1,1 αg−1,2 ... αg−1,p
1 1 0 ... 0
τ11 τ12 ... τ1p
1 0 1 ... 0 +
... ... ... ...
... ... ... ...
τb−1,1 τb−1,2 ... τb−2,p
1 0 1 ... 0
... ... ... ...
γ111 γ112 ... γ11p
... ... ... ...
1 0 0 ... 0
γg−1,b−1,1 γg−1,b−1,2 ... γg−1,b−2,p
423
Two-way MANOVA
424
Sum of squares and cross-product matrices
xikr − x̄ = (x̄i. − x̄) + (x̄.k − x̄) + (x̄ik − x̄i. − x̄.k + x̄) + (xikr − x̄ik ),
where x̄i. is the p × 1 mean vector of observations at ith level
of factor 1, x̄.k is the p × 1 mean vector of observations at
kth level of factor 2 and x̄ik is the p × 1 mean vector of ob-
servations at the ith level of factor 1 and the kth level of
factor 2.
425
Two-way MANOVA
Source SS and CP matrices Degress of freedom
See next page for expressions for the various SS and CP matrices.
426
Two-way MANOVA
427
Testing hypothesis in the two-way model
• We first test for the presence of absence of interaction
effects:
H0 : γ11 = γ12 = · · · = γgb = 0,
versus H1 : at least one γik 6= 0.
428
Testing hypothesis in the two-way model
429
Testing hypothesis in the two-way model
430
Testing hypothesis in the two-way model
(cont’d)
H0 : α1 = α2 = · · · = αg = 0,
versus H1 : at least one αil 6= 0. The Wilk’s Λ∗ statistic is
|SSE|
Λ∗ = ,
|SSPf ac1 + SSE|
and the null is rejected at level α if
" #
p + 1 − (g − 1)
− bg(n − 1) − ln Λ∗ ≥ χ2
p(g−1) (α).
2
431
Testing hypothesis in the two-way model
(cont’d)
• Similarly, the null hypothesis of no additive effect of factor 2
is
H0 : τ1 = τ2 = · · · = τb = 0,
versus H1 : at least one τk 6= 0. The Wilk’s Λ∗ statistic is
|SSE|
Λ∗ = ,
|SSPf ac2 + SSE|
and the null is rejected at level α if
" #
p + 1 − (b − 1)
− bg(n − 1) − ln Λ∗ ≥ χ2
p(b−1) (α).
2
432
Simultaneous confidence intervals
433
Simultaneous confidence intervals (cont’d)
434
Simultaneous confidence intervals (cont’d)
435
Some Comments
436
Example: Peanuts
437
Example: Peanuts
438
Example: Peanuts(cont’d)
• It is useful to first obtain the profile plots for the three
variables to see whether there may be interaction effects of
location and variety.
439
Example: Peanuts(SAS Code)
data set1;
infile "c:\stat501\data\peanuts.dat";
INPUT location variety x1 x2 x3;
/* LABEL group = student group
x1 = yield
x2 = SdMatKer
x3 = SeedSize; */
run;
440
Example: Peanuts(SAS Code)
441
Example: Peanuts(SAS Output)
Dependent Variable: x1
Sum of
Source DF Squares Mean Square
Model 5 401.9175000 80.3835000
Error 6 104.2050000 17.3675000
Corrected Total 11 506.1225000
443
Example: Peanuts(SAS Code)
Dependent Variable: x2
Sum of
Source DF Squares Mean Square
Model 5 2031.777500 406.355500
Error 6 352.105000 58.684167
Corrected Total 11 2383.882500
444
Example: Peanuts(SAS Code)
Dependent Variable: x3
Sum of
Source DF Squares Mean Square
Model 5 442.5741667 88.5148333
Error 6 94.8350000 15.8058333
Corrected Total 11 537.4091667
445
Example: Peanuts(SAS Code)
448
Example: Peanuts(SAS Code)
449
Example: Peanuts(SAS Code)
450
Example: Peanuts(SAS Code)
454
Example: Peanuts(SAS Code)
Adj Pr > F
Source F Value Pr > F G - G H - F
traits 3741.70 <.0001 <.0001 <.0001
traits*location 6.87 0.0103 0.0337 0.0103
traits*variety 7.39 0.0031 0.0188 0.0031
traits*location*variety 3.42 0.0436 0.0919 0.0436
455