rmRNAseq (version 0.1.0)

jabes.q: Q-value Using Histogram-based Method

Description

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

Usage

jabes.q(p, B = 20)

Arguments

p

a numerical vector of p-value

B

number of bin

Value

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

References

1. 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 Vol. 11, No. 3 (Sep., 2006), pp. 337-356.

Examples

Run this code
# NOT RUN {
data(res)
p <- res$pqvalue$pv$line2
q <- rmRNAseq:::jabes.q(p)
sum(q <= .05)
# }

Run the code above in your browser using DataCamp Workspace