Learn R Programming

RVAideMemoire (version 0.9-69-3)

pairwise.to.groups: Letter summary of similarities and differences

Description

Converts a pairwise-comparison matrix into a character-based display in which common characters identify levels or groups that are not significantly different. The function is based on multcompLetters.

Usage

pairwise.to.groups(pairwise.test, component = "p.value", alpha = 0.05)

Arguments

pairwise.test

a list, typically of class "pairwise.htest".

component

name of the component of pairwise.test containing the pairwise-comparison matrix. The default "p.value" corresponds to all objects of class "pairwise.htest".

alpha

significance threshold.

See Also

multcompLetters for confidence intervals (and tests).

Examples

Run this code
# NOT RUN {
attach(airquality)
Month <- factor(Month,labels=month.abb[5:9])
(test <- pairwise.t.test(Ozone, Month))
pairwise.to.groups(test)
detach()
# }

Run the code above in your browser using DataLab