.logBH | R Documentation |
Perform a Benjamini-Hochberg correction on log-transformed p-values to get log-adjusted p-values, without the loss of precision from undoing and redoing the log-transformations.
.logBH(log.p.val)
log.p.val |
Numeric vector of log-transformed p-values. |
A numeric vector of the same length as log.p.val
containing log-transformed BH-corrected p-values.
Aaron Lun
log.p.values <- log(runif(1000))
obs <- .logBH(log.p.values)
head(obs)
ref <- log(p.adjust(exp(log.p.values), method="BH"))
head(ref)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.