Learn R Programming

RVAideMemoire (version 0.9-35)

pairwise.G.test: Pairwise comparisons for proportions using G-tests

Description

Perform pairwise comparisons between pairs of proportions with correction for multiple testing.

Usage

pairwise.G.test(x, p.method = "fdr")

Arguments

x
matrix with 2 columns giving the counts of successes and failures, respectively.
p.method
method for p-values correction. See help of p.adjust.

Value

  • methodname of the test.
  • data.namea character string giving the name(s) of the data.
  • p.adjust.methodmethod for p-values correction.
  • p.valuetable of results.

See Also

G.test

Examples

Run this code
x <- matrix(c(22,28,13,37,35,15),ncol=2,dimnames=list(c("Control","Treatment1","Treatment2"),
  c("Alive","Dead")),byrow=TRUE)
G.test(x)
pairwise.G.test(x)

Run the code above in your browser using DataLab