Last chance! 50% off unlimited learning
Sale ends in
Performs pairwise comparisons of proportions when the number of classes is >= 2 with corrections for multiple testing.
prop.multinom.test(x, p.method = "fdr")
either a factor or a matrix with K columns giving the counts for each of the K classes.
method for p-values correction. See help of p.adjust
.
a character string indicating the name of the test.
a character string giving the name(s) of the data.
method for p-values correction.
table of results.
table of z values.
The function builds multinomial log-linear models (using multinom
) and applies Wald tests to compare the intercepts to 0. All necessary models (each time using a different reference level/class) are built to get p-values of all possible comparisons among levels/classes.
# NOT RUN {
response <- factor(rep(LETTERS[1:4],c(20,40,42,13)))
table(response)/length(response)
prop.multinom.test(response)
# }
Run the code above in your browser using DataLab