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,                  [EMAIL PROTECTED]
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

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to