View source: R/wald.ptheo.multinom.test.R
wald.ptheo.multinom.test | R Documentation |
Performs pairwise comparisons of proportions to theoretical values.
wald.ptheo.multinom.test(x, p, p.method = "fdr")
x |
either a factor or a matrix with K columns giving the counts for each of the K classes. |
p |
theoretical proportions. |
p.method |
method for p-values correction. See help of |
The function builds K logistic regressions (in each case considering one class vs. the sum of all others) and uses wald.ptheo.test
to test the hypothesis that the proportion of this class is equal to p[K]
.
method |
name of the test. |
data.name |
a character string giving the name(s) of the data. |
observed |
observed proportions. |
expected |
theoretical proportions. |
p.adjust.method |
method for p-values correction. |
statistic |
statistics of each test. |
p.value2 |
corrected p-values. |
p.value |
data frame of results. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
wald.ptheo.test
, prop.multinom
response <- factor(rep(LETTERS[1:4],c(20,40,42,13)))
wald.ptheo.multinom.test(response,p=c(0.15,0.25,0.3,0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.