View source: R/multinomial.theo.multcomp.R
multinomial.theo.multcomp | R Documentation |
Performs pairwise comparisons after a global exact multinomial test for given probabilities. These comparisons are performed using exact binomial tests.
multinomial.theo.multcomp(x, p = rep(1/length(x), length(x)), prop = FALSE,
p.method = "fdr")
x |
numeric vector (counts). Can also be a factor; in that case |
p |
theoretical proportions. |
prop |
logical indicating if results should be printed as counts ( |
p.method |
method for p-values correction. See help of |
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.
method |
name of the test. |
data.name |
a character string giving the name(s) of the data. |
observed |
observed counts. |
expected |
expected counts. |
p.adjust.method |
method for p-values correction. |
p.value2 |
corrected p-values. |
p.value |
data frame of results. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
multinomial.test
, binom.test
counts <- c(5,15,23)
p.theo <- c(0.2,0.5,0.3)
multinomial.test(counts,p=p.theo)
multinomial.theo.multcomp(counts,p=p.theo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.