[R] Which function to use for multiple comparison?

Thomas Lumley
Mon, 08 Jul 2002 15:22:14 -0000

On Mon, 8 Jul 2002, Julie Cong wrote:

>        [Moderator: This was erronously sent to R-announce,
> 		   and filtered fortunately ]
>
> Hi,
>
> This is my first time to use R. I'm wondering which function I can use
to do
> multiple comparison. I have an lm object and want to do multiple comparison
> based on this object. Splus has a function multicomp() but I could not find
> a similar one in R. Thanks in advance. Really appreciate it.
>

At the moment the multiple comparisons features in R are a bit limited.

   p.adjust does a number of corrections of p-values that are very general

   pairwise.t.test is another interface to these same methods

   TukeyHSD provides Tukey's Honestly Significant Difference

help.search("comparison") suggests that the npmc package might also be
helpful.

	-thomas