wald.ptheo.multinom.test: Wald tests for comparison of proportions to theoretical values
Description
Performs pairwise comparisons of proportions to theoretical values.
Usage
wald.ptheo.multinom.test(x, p, p.method = "fdr")
Value
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.
Arguments
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 p.adjust.
Author
Maxime HERVE <maxime.herve@univ-rennes1.fr>
Details
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].