wald.ptheo.multinom.test {RVAideMemoire}R Documentation

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")

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.

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

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.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

wald.ptheo.test, prop.multinom

Examples

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))

[Package RVAideMemoire version 0.9-83-7 Index]