Learn R Programming

RVAideMemoire (version 0.9-35)

chisq.theo.multcomp: Pairwise comparisons after a chi-squared test for given probabilities

Description

Perform pairwise comparisons after a global chi-squared test for given probabilities.

Usage

chisq.theo.multcomp(x, p = rep(1/length(x), length(x)), p.method = "fdr")

Arguments

x
numeric vector (counts).
p
theoretical proportions.
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.
  • observedobserved counts.
  • expectedexpected counts.
  • p.adjust.methodmethod for p-values correction.
  • statisticstatistics of each test.
  • p.value2corrected p-values.
  • p.valuedata frame of results.

See Also

chisq.test

Examples

Run this code
counts <- c(5,15,23,8,14)
p.theo <- c(0.1,0.4,0.3,0.15,0.05)
chisq.test(counts,p=p.theo)
chisq.theo.multcomp(counts,p=p.theo)

Run the code above in your browser using DataLab