prop.multcomp function

Pairwise comparisons after a test for given proportions

Pairwise comparisons after a test for given proportions

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

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.

Returns

  • method: name of the test.

  • data.name: a character string giving the name(s) of the data.

  • observed: observed proportions.

  • expected: expected proportions.

  • p.adjust.method: method for p-values correction.

  • p.value2: corrected p-values.

  • p.value: table or results of pairwise comparisons.

Author(s)

Maxime HERVE maxime.herve@univ-rennes1.fr

See Also

prop.test

Examples

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)
  • Maintainer: Maxime HERVE
  • License: GPL-2
  • Last published: 2023-11-06

Useful links