Last chance! 50% off unlimited learning
Sale ends in
Performs pairwise comparisons after a global G-test.
G.multcomp(x, p.method = "fdr")
numeric vector (counts).
method for p-values correction. See help of p.adjust
.
name of the test.
a character string giving the name(s) of the data.
method for p-values correction.
table of results.
Since a G-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.
# NOT RUN {
counts <- c(49,30,63,59)
G.test(counts)
G.multcomp(counts)
# }
Run the code above in your browser using DataLab