Skip to content
Prev 168121 / 398502 Next

Anova and unbalanced designs

Dear Nils,

I don't currently have a copy of SAS on my computer, so I asked Michael
Friendly to run the problem in SAS and he kindly supplied the following
results:

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

                                 The SAS System
1
                                                12:32 Saturday, January 24,
2009

                               The GLM Procedure

                            Class Level Information

                         Class         Levels    Values

                         between            2    1 2


                    Number of Observations Read          10
                    Number of Observations Used          10
                                 The SAS System
2
                                                12:32 Saturday, January 24,
2009

                               The GLM Procedure
                     Repeated Measures Analysis of Variance

                      Repeated Measures Level Information

                    Dependent Variable          w1       w2

                       Level of within           1        2


                  MANOVA Test Criteria and Exact F Statistics
                     for the Hypothesis of no within Effect
                      H = Type III SSCP Matrix for within
                             E = Error SSCP Matrix

                              S=1    M=-0.5    N=3

Statistic                        Value    F Value    Num DF    Den DF    Pr
Wilks' Lambda               0.95238095       0.40         1         8
0.5447
Pillai's Trace              0.04761905       0.40         1         8
0.5447
Hotelling-Lawley Trace      0.05000000       0.40         1         8
0.5447
Roy's Greatest Root         0.05000000       0.40         1         8
0.5447


                MANOVA Test Criteria and Exact F Statistics for
                   the Hypothesis of no within*between Effect
                  H = Type III SSCP Matrix for within*between
                             E = Error SSCP Matrix

                              S=1    M=-0.5    N=3

Statistic                        Value    F Value    Num DF    Den DF    Pr
Wilks' Lambda               0.83333333       1.60         1         8
0.2415
Pillai's Trace              0.16666667       1.60         1         8
0.2415
Hotelling-Lawley Trace      0.20000000       1.60         1         8
0.2415
Roy's Greatest Root         0.20000000       1.60         1         8
0.2415
                                 The SAS System
3
                                                12:32 Saturday, January 24,
2009

                               The GLM Procedure
                     Repeated Measures Analysis of Variance
                Tests of Hypotheses for Between Subjects Effects

 Source                     DF    Type III SS    Mean Square   F Value   Pr
between                     1     4.80000000     4.80000000      4.27
0.0727
 Error                       8     9.00000000     1.12500000
                                 The SAS System
4
                                                12:32 Saturday, January 24,
2009

                               The GLM Procedure
                     Repeated Measures Analysis of Variance
           Univariate Tests of Hypotheses for Within Subject Effects

 Source                     DF    Type III SS    Mean Square   F Value   Pr
within                      1     0.53333333     0.53333333      0.40
0.5447
 within*between              1     2.13333333     2.13333333      1.60
0.2415
 Error(within)               8    10.66666667     1.33333333

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

As you can see, these agree with Anova():

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

Type III Repeated Measures MANOVA Tests: Pillai test statistic
               Df test stat approx F num Df den Df    Pr(>F)    
(Intercept)     1     0.963  209.067      1      8 5.121e-07 ***
between         1     0.348    4.267      1      8   0.07273 .  
within          1     0.048    0.400      1      8   0.54474    
between:within  1     0.167    1.600      1      8   0.24150    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1


Univariate Type III Repeated-Measures ANOVA Assuming Sphericity

                    SS num Df Error SS den Df        F    Pr(>F)    
(Intercept)    235.200      1    9.000      8 209.0667 5.121e-07 ***
between          4.800      1    9.000      8   4.2667   0.07273 .  
within           0.533      1   10.667      8   0.4000   0.54474    
between:within   2.133      1   10.667      8   1.6000   0.24150    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

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

So, unless Anova() and SAS are making the same error, I guess SPSS is doing
something strange (or perhaps you didn't do what you intended in SPSS). As I
said before, this problem is so simple, that I find it hard to understand
where there's room for error, but I wanted to check against SAS to test my
sanity (a procedure that will likely get a rise out of some list members).

Maybe you should send a message to the SPSS help list.

Regards,
 John

------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
On
was
))
[mailto:r-help-bounces at r-project.org]
different
http://www.R-project.org/posting-guide.html