Skip to content

how to do multiple comparisons in R?

4 messages · sun, Adaikalavan Ramasamy, Simon Blomberg +1 more

sun
#
Hi, Sorry I have to bother a question.

Does R have the functions to do lsd, tukey, bonferonni, contrast etc. like 
in SAS?

Many thanks,

HS
#
Certainly yes and more. 

Try checking under http://finzi.psych.upenn.edu/nmz.html and 
http://cran.r-project.org/manuals.html

Regards, Adai
On Sun, 2005-09-11 at 20:12 -0500, Hongyu Sun wrote:
#
R has various methods for multiple comparison procedures. See package 
multcomp, or ?TukeyHSD or ?pairwise.t.test for example. An 
RSiteSearch("multiple comparison") returned 187 results. A priori contrasts 
can be constructed using the make.contrasts function in the gmodels 
package, for example. We try not to do anything like in SAS.

Simon.
At 11:12 AM 12/09/2005, Hongyu Sun wrote:
5 days later
#
Have you received a reply yet?  I haven't seen one.

	  There are functions "TukeyHSD" and "p.adjust" in the "stats" package, 
plus "multcomp" and "multtest" packages.

	  If this is not an adequate answer, please submit another question 
(preferably after reading the posting guide! 
http://www.R-project.org/posting-guide.html).

	  spencer graves
Hongyu Sun wrote: