jabes.q: Q-value Using Histogram-based Method (Nettleton 2006)

Description Usage Arguments Value Author(s) References Examples

Description

This function computes q-values using the approach of Nettleton et al. (2006) JABES 11, 337-356. Author: Dan Nettleton

Usage

1
jabes.q(p, lambda0, B = 20)

Arguments

p

a numerical vector of p-value.

lambda0

threshold lambda in Storey formula.

B

number of bin.

Value

The function returns a q-value vector of the input p-value vector.

Author(s)

Dan Nettleton dnett@iastate.edu

References

Dan NETTLETON, J. T. Gene HWANG, Rico A. CALDO, and Roger P. WISE. Estimating the Number of True Null Hypotheses From a Histogram of p Values. Journal of Agricultural, Biological, and Environmental Statistics, Volume 11, Number 3, Pages 337–356.

Examples

1
2
3
4
p <- runif(100)
lambda0 <- estimate.lambda(p)
q <- jabes.q(p, lambda0)
sum(q <= .05)

ntyet/sfdr documentation built on May 7, 2019, 1:30 p.m.