multinomial.multcomp function

Pairwise comparisons after an exact multinomial test

Pairwise comparisons after an exact multinomial test

Performs pairwise comparisons after a global exact multinomial test. These comparisons are performed using exact binomial tests.

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

Arguments

  • x: numeric vector (counts). Can also be a factor; in that case table(x) is used as counts.
  • p.method: method for p-values correction. See help of p.adjust.

Details

Since chi-squared and G tests are approximate tests, exact tests are preferable when the number of individuals is small (200 is a reasonable minimum).

An exact multinomial test with two groups is strictly the same than an exact binomial test.

Returns

  • 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.

Author(s)

Maxime HERVE maxime.herve@univ-rennes1.fr

See Also

multinomial.test, binom.test

Examples

counts <- c(5,15,23) multinomial.test(counts) multinomial.multcomp(counts)
  • Maintainer: Maxime HERVE
  • License: GPL-2
  • Last published: 2023-11-06

Useful links