Skip to content
Prev 301224 / 398506 Next

Between-group variance from ANOVA

The classical calculations in a one way anova table make no assumptions about the origin or distribution of the between-group differences. Nor does the F test commonly applied (because the F test assumes the null hypothesis, which is that there is no group effect - so we don't need to make assumptions about it to calculate a p-value). 

For one way anova you are therefore free to think of the between group effects, if hypothesised to be present, as fixed or random. If the experiment tests controlled changes it usually makes more sense to think of them as fixed, and one tends to worry about the size of individual effects; If you're thinking of them as drawn randomly from a larger population of possible effects (ie random) it is usually sensible to calculate a variance. 

The classical calcuilations of the between-group variance are given in practically every textbook on the topic. For a slightly more modern take on it you'd probably go for REML solutions which you can get from lme in the nlme package, among others. To do that, assuming data y with a grouping factor g, you would do something like
library(nlme)
l <- lme(y~1, random=~1|g)
summary(l) #for the whole picture
VarCorr(l) #for just variances

... and that will give you estimates of within- and between-group variance components

S Ellison

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}