View source: R/pairwise.G.test.R
pairwise.G.test | R Documentation |
Performs pairwise comparisons between pairs of proportions with correction for multiple testing.
pairwise.G.test(x, p.method = "fdr")
x |
matrix with 2 columns giving the counts of successes and failures, respectively. |
p.method |
method for p-values correction. See help of |
Since a G-test is an approximate test, an exact test is preferable when the number of individuals is small (200 is a reasonable minimum). See fisher.multcomp
in that case.
method |
name of the test. |
data.name |
a character string giving the name(s) of the data. |
p.adjust.method |
method for p-values correction. |
p.value |
table of results. |
G.test
, fisher.multcomp
x <- matrix(c(44,56,36,64,64,40),ncol=2,dimnames=list(c("Control","Treatment1","Treatment2"),
c("Alive","Dead")),byrow=TRUE)
G.test(x)
pairwise.G.test(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.