Message-ID: <Pine.LNX.4.61.0411160739110.16006@gannet.stats>
Date: 2004-11-16T07:43:44Z
From: Brian Ripley
Subject: anova, multiple comparison
In-Reply-To: <20041116104739.20bd052a.yzhang4@turing.une.edu.au>
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?
?TukeyHSD
library(help=multcomp)
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