Compute Q values: Q-values using Benjamini and Hochberg (1995)
Description
Compute q-values Benjamini and Hochberg's (1995) approach for controlling FDR.
Usage
qvalue(p, method = c("BH1995", "BY2001"))
Arguments
p
a p-value vector.
method
using method by either BH1995 or BY2001
Value
Return corresponding q-values for the input p-values.
Details
This function compute q-values using Benjamini and Hochberg's (1995)
approach for controlling FDR. The function bh.fdr is originally
written by Dr. Dan Nettleton.
The Benjamini and Yeekutieli's (2001) approach for controlling FDR using
the function by.fdr is coded by Wei-Chen Chen.