pvalue2qvalue {ramwas} | R Documentation |
Calculate Benjamini-Hochberg q-values for a vector of p-values.
pvalue2qvalue(pv, n = length(pv))
pv |
Vector of p-values. |
n |
If |
The q-values can be slightly conservative compared to other popular q-value calculation methods.
Return a vector of q-values matching p-values in pv
.
The function runs faster if the vector pv
is sorted.
Andrey A Shabalin andrey.shabalin@gmail.com
pv = runif(20)^2 qv = pvalue2qvalue(pv)