Learn R Programming

RVAideMemoire (version 0.9-45-2)

prop.multcomp: Pairwise comparisons after a test for given proportions

Description

Performs pairwise comparisons after a global test for given proportions, by using exact binomial tests.

Usage

prop.multcomp(x, p, p.method = "fdr")

Arguments

x
contingency table.
p
theoretical proportions.
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.
  • observedobserved proportions.
  • expectedexpected proportions.
  • p.adjust.methodmethod for p-values correction.
  • p.value2corrected p-values.
  • p.valuetable or results of pairwise comparisons.

See Also

prop.test

Examples

Run this code
proportions <- sample(c(0,1),200,replace=TRUE)
populations <- sample(LETTERS[1:3],200,replace=TRUE)
tab.cont <- table(populations,proportions)
p.theo <- c(0.4,0.5,0.7)
prop.test(tab.cont,p=p.theo)
prop.multcomp(tab.cont,p=p.theo)

Run the code above in your browser using DataLab