Learn R Programming

RVAideMemoire (version 0.9-45-2)

chisq.multcomp: Pairwise comparisons after a chi-squared goodness-of-fit test

Description

Performs pairwise comparisons after a global chi-squared goodness-of-fit test.

Usage

chisq.multcomp(x, p.method = "fdr")

Arguments

x
numeric vector (counts).
p.method
method for p-values correction. See help of p.adjust.

Value

  • methodname of the test.
  • data.namea character string giving the name(s) of the data.
  • p.adjust.methodmethod for p-values correction.
  • p.valuetable of results.

Details

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.

See Also

chisq.test, multinomial.test, multinomial.multcomp

Examples

Run this code
counts <- c(49,30,63,59)
chisq.test(counts)
chisq.multcomp(counts)

Run the code above in your browser using DataLab