[R] anova, multiple comparison

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Nov 16 08:43:44 CET 2004

On Tue, 16 Nov 2004, Yuandan Zhang wrote:

> I try to used R to do one-way anova.
> here is the simple code
> f1<- lm (y ~ block, data=yd)
> there are 8 levels of factor block,
> I also want produce multiple pairwise comparisons for the 8 levels of 
> block, inlcuding mean and std err for each of the 8 lelevls. It is 
> tidious to do pair test. I looked the manuals, find no clues. any 
> suggest?


Chapter 6 of MASS4, a book recommended in the FAQ, has worked examples, 
and its scripts are included in the VR package for R.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list