reportPi0: Get pi0 from P-values

Description Usage Arguments Value Examples

Description

reportPi0 Calculate pi0 from p-values using the qvalue package

Usage

1

Arguments

ps

a vector, data.frame or matrix of pvalues

Value

a vector (if is.numeric(ps)) or a matrix of pi0 and the number of affected elements

Examples

1
2
3
4
5
x <- sample(seq(0,1,by=0.0001),1000)
reportPi0(x)
df <- data.frame(x=sample(seq(0,1,by=0.0001),1000),
   y=sample(seq(0,.1,by=0.0001),1000),
   z=sample(seq(0,1,by=0.0001),1000))

jtlovell/limmaDE2 documentation built on May 20, 2019, 3:14 a.m.