Last data update: 2014.03.03

R: Pairwise comparisons after an exact multinomial test
multinomial.multcompR Documentation

Pairwise comparisons after an exact multinomial test

Description

Performs pairwise comparisons after a global exact multinomial test. These comparisons are performed using exact binomial tests.

Usage

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

Arguments

x

numeric vector (counts).

p.method

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

Details

Since chi-squared and G tests are approximate tests, exact tests are preferable when the number of individuals is small (200 is a reasonable minimum).

An exact multinomial test with two groups is strictly the same than an exact binomial test.

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<c3><a9> <mx.herve@gmail.com>

See Also

multinomial.test, binom.test

Examples

counts <- c(5,15,23)
multinomial.test(counts)
multinomial.multcomp(counts)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RVAideMemoire)
*** Package RVAideMemoire v 0.9-56 ***
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/RVAideMemoire/multinomial.multcomp.Rd_%03d_medium.png", width=480, height=480)
> ### Name: multinomial.multcomp
> ### Title: Pairwise comparisons after an exact multinomial test
> ### Aliases: multinomial.multcomp
> 
> ### ** Examples
> 
> counts <- c(5,15,23)
> multinomial.test(counts)

	Exact multinomial test

data:  counts
p-value = 0.002187

> multinomial.multcomp(counts)

	Pairwise comparisons using exact binomial tests 

data:  counts 

   5      15    
15 0.0621 -     
23 0.0027 0.2559

P value adjustment method: fdr 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>