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

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/chisq.multcomp.R

Description

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

Usage

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

Arguments

x

numeric vector (counts).

p.method

method for p-values correction. See help of p.adjust.

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.

Value

method

name of the test.

data.name

a character string giving the name(s) of the data.

p.adjust.method

method for p-values correction.

p.value

table of results.

Author(s)

Maxime Herv<e9> <[email protected]>

See Also

chisq.test, multinomial.test, multinomial.multcomp

Examples

1
2
3
counts <- c(49,30,63,59)
chisq.test(counts)
chisq.multcomp(counts)

Example output

*** Package RVAideMemoire v 0.9-68 ***

	Chi-squared test for given probabilities

data:  counts
X-squared = 12.95, df = 3, p-value = 0.004745


	Pairwise comparisons using chi-squared tests 

data:  counts 

   30     49     59    
49 0.0651 -      -     
59 0.0063 0.4031 -     
63 0.0037 0.2788 0.7172

P value adjustment method: fdr 

RVAideMemoire documentation built on Nov. 6, 2018, 5:05 p.m.