Skip to content
Prev 17713 / 398502 Next

Unbalanced ANOVA in R?

On Fri, 8 Mar 2002, Fredrik Karlsson wrote:

            
I said use lme, *not* aov and lme.  Note, though, that the advice applied
to multistrata unbalanced anova, and this appears to be a two-way layout in
one stratum.  You can use aov for that. (You can't use lme unless there are
two or more strata.)  Just be careful how you interpret the output: in SAS
parlance aov gives you `Type I' sums of squares.

The reason why this is more difficult in R is that R unlike SPSS does not
guess which of the many possible interpretations you mean.  We would need
to know a lot more about the actual statistical problem to tell you what
would be a good analysis in R.

Maybe you should look at a textbook designed for use with S/R not SPSS?