powered by
Performs pairwise comparisons after a global chi-squared goodness-of-fit test.
chisq.multcomp(x, p.method = "fdr")
name of the test.
a character string giving the name(s) of the data.
method for p-values correction.
table of results.
numeric vector (counts).
method for p-values correction. See help of p.adjust.
p.adjust
Maxime HERVE <[email protected]>
Since a chi-squared test is an approximate test, an exact test is preferable when the number of individuals is small (200 is a reasonable minimum). See multinomial.multcomp in that case.
multinomial.multcomp
chisq.test, multinomial.test, multinomial.multcomp
chisq.test
multinomial.test
counts <- c(49,30,63,59) chisq.test(counts) chisq.multcomp(counts)
Run the code above in your browser using DataLab