exactTestNB {edgeR} | R Documentation |
An exact test for differences between two negative binomial groups
exactTestNB(y, g, mus, r, verbose=TRUE)
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 |
list with elements lr
(likelihood ratio test), r
(estimates of 1/overdispersion), ps
(list containing proportion estimates)
Mark Robinson
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)