Learn R Programming

pgirmess (version 2.0.2)

TukeyHSDs: Simplify the list of a TukeyHSD object keeping the significant differences only.

Description

Simplify the list of a TukeyHSD object keeping the significant differences only.

Usage

TukeyHSDs(TukeyHSD.object)

Value

An object of class "multicomp" and "TukeyHSD"

Arguments

TukeyHSD.object

An object of calls "TukeyHSD"

Details

When TukeyHSD is used on a fitted model with large numbers of categories, the number of pairwise comparisons is extremely large (n(n-1)/2). TukeyHSDs simplify the TukeyHSD object keeping the significant pairwise comparisons only. A plot method exists for TukeyHSD objects.

See Also

Examples

Run this code

     summary(fm1 <- aov(breaks ~ wool + tension, data = warpbreaks))
     myobject<-TukeyHSD(fm1, "tension", ordered = TRUE)
     myobject
     TukeyHSDs(myobject)
  

Run the code above in your browser using DataLab