Skip to content
Prev 168054 / 398502 Next

Anova and unbalanced designs

Dear Nils,

This is a pretty simple design, and I wouldn't have thought that there was
much room for getting different results. More generally, but not here (since
there's only one between-subject factor), one shouldn't use
contr.treatment() with "type-III" tests, as you did. Is it possible that you
got "type-II" tests from SPSS:

------ snip ----------
Type II Repeated Measures MANOVA Tests:

------------------------------------------
 
Term: between 

 Response transformation matrix:
   (Intercept)
w1           1
w2           1

Sum of squares and products for the hypothesis:
            (Intercept)
(Intercept)         9.6

Sum of squares and products for error:
            (Intercept)
(Intercept)          18

Multivariate Tests: between
                 Df test stat approx F num Df den Df   Pr(>F)  
Pillai            1  0.347826 4.266667      1      8 0.072726 .
Wilks             1  0.652174 4.266667      1      8 0.072726 .
Hotelling-Lawley  1  0.533333 4.266667      1      8 0.072726 .
Roy               1  0.533333 4.266667      1      8 0.072726 .
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 

------------------------------------------
 
Term: within 

 Response transformation matrix:
   within1
w1       1
w2      -1

Sum of squares and products for the hypothesis:
        within1
within1     0.4

Sum of squares and products for error:
         within1
within1 21.33333

Multivariate Tests: within
                 Df test stat  approx F num Df den Df  Pr(>F)
Pillai            1 0.0184049 0.1500000      1      8 0.70864
Wilks             1 0.9815951 0.1500000      1      8 0.70864
Hotelling-Lawley  1 0.0187500 0.1500000      1      8 0.70864
Roy               1 0.0187500 0.1500000      1      8 0.70864

------------------------------------------
 
Term: between:within 

 Response transformation matrix:
   within1
w1       1
w2      -1

Sum of squares and products for the hypothesis:
         within1
within1 4.266667

Sum of squares and products for error:
         within1
within1 21.33333

Multivariate Tests: between:within
                 Df test stat  approx F num Df den Df  Pr(>F)
Pillai            1 0.1666667 1.6000000      1      8 0.24150
Wilks             1 0.8333333 1.6000000      1      8 0.24150
Hotelling-Lawley  1 0.2000000 1.6000000      1      8 0.24150
Roy               1 0.2000000 1.6000000      1      8 0.24150

Univariate Type II Repeated-Measures ANOVA Assuming Sphericity

                    SS num Df Error SS den Df      F  Pr(>F)  
between         4.8000      1   9.0000      8 4.2667 0.07273 .
within          0.2000      1  10.6667      8 0.1500 0.70864  
between:within  2.1333      1  10.6667      8 1.6000 0.24150  
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 

------ snip ----------

I hope this helps,
 John

------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
On
http://www.R-project.org/posting-guide.html