Learn R Programming

RVAideMemoire (version 0.9-7)

chisq.theo.multcomp: Pairwise comparisons after 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, p.method = "fdr")

Arguments

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

Value

  • observedobserved counts.
  • expectedexpected counts.
  • p.methodmethod for p-values correction.
  • chi2statistics of each test.
  • pcorrected p-values.
  • comdata 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