Learn R Programming

onewaytests (version 3.0)

paircomp: Pairwise Comparisons

Description

paircomp is a generic function for pairwise comparisons by adjusting p-values.

Usage

# S3 method for owt
paircomp(x, adjust.method = c("bonferroni", "holm", "hochberg", "hommel", "BH", 
  "BY", "fdr", "none"), verbose = TRUE, ...)

Value

Returns a data.frame of output.

Arguments

x

a owt object.

adjust.method

Method for adjusting p values (see p.adjust). Default is set to "bonferroni".

verbose

a logical for printing output to R console.

...

Additional arguments affecting multiple comparisons of groups in one-way independent designs.

Author

Osman Dag

Examples

Run this code

library(onewaytests)

out <- aov.test(Sepal.Length ~ Species, data = iris)
paircomp(out)
paircomp(out, adjust.method = "hochberg")

out2 <- kw.test(Sepal.Length ~ Species, data = iris)
paircomp(out2)
paircomp(out2, adjust.method = "hommel")

out3 <- kw.test(Sepal.Length ~ Species, data = iris)
paircomp(out3)
paircomp(out3, adjust.method = "holm")


Run the code above in your browser using DataLab