exactTestNB {edgeR}R Documentation

An exact test for differences between two negative binomial groups

Description

An exact test for differences between two negative binomial groups

Usage

 
exactTestNB(y, g, mus, r, verbose=TRUE)

Arguments

y data (e.g. quantile adjusted pseudodata) to compute Fisher exact statistics on
g group indicator, must be same length as nrow(y)
mus vector of means under the null hypothesis (of no difference between groups)
r preset or estimated negative binomial size parameter. If you want to run a Poisson test, set r very large (e.g. 1000)
verbose whether to write comments, default true

Value

list with elements lr (likelihood ratio test), r (estimates of 1/overdispersion), ps (list containing proportion estimates)

Author(s)

Mark Robinson

Examples

y<-matrix(rnbinom(20,mu=10,size=1.5),nrow=5)
group<-c(1,1,2,2)
mus<-rep(10,5)
f<-exactTestNB(y,group,mus,r=1.5)

[Package edgeR version 1.0.4 Index]