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

View source: R/multtest.R

jabes.qR Documentation

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.

Author(s)

Dan Nettleton dnett@iastate.edu

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

data(res)
p <- res$pqvalue$pv$line2
q <- rmRNAseq:::jabes.q(p)
sum(q <= .05)

ntyet/rmRNAseq documentation built on July 7, 2023, 11:10 a.m.