powered by
Performs pairwise comparisons after a global G-test for given probabilities.
G.theo.multcomp(x, p = rep(1/length(x), length(x)), p.method = "fdr")
name of the test.
a character string giving the name(s) of the data.
observed counts.
expected counts.
method for p-values correction.
statistics of each test.
corrected p-values.
data frame of results.
numeric vector (counts).
theoretical proportions.
method for p-values correction. See help of p.adjust.
p.adjust
Maxime HERVE <[email protected]>
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.theo.multcomp in that case.
multinomial.theo.multcomp
G.test, multinomial.test, multinomial.theo.multcomp
G.test
multinomial.test
counts <- c(49,30,63,59) p.theo <- c(0.2,0.1,0.45,0.25) G.test(counts,p=p.theo) G.theo.multcomp(counts,p=p.theo)
Run the code above in your browser using DataLab