bh.test | R Documentation |
This function performs the Benjamini-Hochberg-Procedure for different p-values in the multiple testing setting. This function computes the significance of the individual tests.
bh.test(p, alpha = 0.05, na.action = na.omit)
p |
vector of p-values on which the Benjamini-Hochberg-Procedure should be applied |
alpha |
numeric; false discovery rate at level alpha; alpha is number between 0 and 1 |
na.action |
function to handle the NA's. Default: |
A logical vector where the value TRUE
indicates that the p-value at the
corresponding position is significant after the Benjamini-Hochberg-Procedure
with false discovery rate alpha
. If the value is FALSE
the p-value at the
corresponding position is not significant after the
Benjamini-Hochberg-Procedure with false discovery rate alpha
.
David Jobst
Benjamini, Y. and Hochberg, Y. (1995). Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. Journal of the Royal Statistical Society, 57, 289-300.
# simulated data
p <- runif(100, 0, 0.06)
# Benjamini-Hochberg-Procedure
bh.test(p = p)
bh.test(p = p, alpha = 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.