Professional Documents
Culture Documents
Comparisons of Several Multivariate Means III - Two Way MANOVA
Comparisons of Several Multivariate Means III - Two Way MANOVA
Comparisons of Several Multivariate Means III - Two Way MANOVA
Pertemuan8-APG-
Outline
• Introduction two way MANOVA
• Data Structure
• Illustrations: Interaction & No Interaction in Univariate Data
• Two way MANOVA with interaction:
• Two way MANOVA Table
• Two way MANOVA Inferences
• Simultaneous Confidence Interval
• Application in R
• Two factor
• Two or more • Categorical
• Interval/ratio variable
(numeric) • Fixed effect
Factor 1 Factor 1
level 1 2 … 𝑔 level 1 2 … 𝑔
1 𝑥11 𝑥21 𝑥𝑔1 𝑥ҧ ∙1
Factor 2
Factor 2
𝑥ҧ1∙ 𝑥ҧ2∙ 𝑥𝑔∙
ҧ 𝐱ത ∙𝒌
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
𝐱ത 1∙ 𝐱ത 2∙ 𝐱ത𝑔∙
𝐱ത 𝒍∙
If there are any replications, so we can analyze such data with interaction analysis
Interaction No Interaction
⋮ 𝐱ത 11 𝐱ത 21 𝐱ത𝑔1 𝐱ത ∙𝟏
𝑛 𝑥111𝑛 𝑥112𝑛 𝑥211𝑛 𝑥212𝑛 𝑥𝑔11𝑛 𝑥𝑔12𝑛
𝑿𝑙𝑘𝑟 ~𝑁𝑝 𝝁𝑙𝑘 , 𝜮
2 1 𝑥1211 𝑥1221 𝑥2211 𝑥2221 𝑥𝑔211 𝑥𝑔221
Factor 2 𝐱ത𝑔2 𝐱ത ∙𝟐
⋮ 𝐱ത 12 𝐱ത 22
The assumptions are
◮ Multivariate normality. 𝑛 𝑥121𝑛 𝑥122𝑛 𝑥221𝑛 𝑥222𝑛 𝑥𝑔21𝑛 𝑥𝑔22𝑛
◮ Equality of covariance ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
matrix ’s.
𝑏 1 𝑥1b11 𝑥1b21 𝑥2b11 𝑥2b21 𝑥𝑔b11 𝑥𝑔b21
◮ Independence between
and within groups. ⋮ 𝐱ത 2𝑏 𝐱ത𝑔𝑏 𝐱ത ∙𝒃
𝐱ത1𝑏
𝑛 𝑥1b1𝑛 𝑥1b2𝑛 𝑥2b1𝑛 𝑥2b2𝑛 𝑥𝑔b1𝑛 𝑥𝑔b2𝑛
𝐱ത1∙ 𝐱ത 2∙ 𝐱ത𝑔∙
6 Comparison of Several Multivariate Means
Two way MANOVA with interaction
𝑿𝑙𝑘𝑟 ~𝑁𝑝 𝝁𝑙𝑘 , 𝜮 ; 𝑙 = 1,2, … , 𝑔; 𝑘 = 1, … , 𝑏; 𝑟 = 1, … , 𝑛
• If 𝐻0 for the interaction is rejected, then you don’t so tests for main effects because the Factor
main effects do not have a clear interpretation.
• Jhonson & Winchern recommend doing p-univariate 2-way ANOVAs to find out “where” the
interactions exist.
• For variables with no interaction, you can interpret main effects.
• Note: In some cases you can go on to test main effects even though the interaction is significant
(we’ll do this in our example).
The Bonferroni 100 1 − 𝛼 % simul. confidence interval for 𝜏𝑙𝑖 − 𝜏𝑚𝑖 , 𝑖 = 1, … , 𝑝 variable
and 𝑚 < 𝑙 = 1, … , 𝑔 :
𝐸𝑖𝑖 2
𝑥ҧ𝑙𝑖∙ − 𝑥ҧ𝑚𝑖∙ ± 𝑡 𝛼
𝑣;
𝑝𝑔 𝑔−1 𝑣 𝑏𝑛
Where 𝑣 = 𝑔𝑏 𝑛 − 1 , 𝐸𝑖𝑖 is diagonal element of 𝑬 = 𝑆𝑆𝑃𝑟𝑒𝑠 and 𝑥ҧ𝑙𝑖∙ − 𝑥ҧ𝑚𝑖∙ is the 𝑖th
component of 𝐱ത 𝑙∙ − 𝐱ത 𝑚∙
Manova(mod, test="Wilks")
##
## Type II MANOVA Tests: Wilks test statistic
## Df test stat approx F num Df den Df Pr(>F)
## Factor1 1 0.38186 7.5543 3 14 0.003034 **
## Factor2 1 0.52303 4.2556 3 14 0.024745 *
## Factor1:Factor2 1 0.77711 1.3385 3 14 0.301782
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Wilk’s LambdaΛ ∗