Learn R Programming

HDLSSkST (version 2.1.0)

BenHoch: Benjamini-Hochbergs step-up-procedure (1995)

Description

Benjamini-Hochbergs step-up-procedure (1995) for multiple tests.

Usage

BenHoch(pvalues, alpha)

Arguments

pvalues

vector of p-values

alpha

numeric, false discovery rate controling level \(\alpha\), default: \(0.05\)

Value

a vector of \(0\)s and \(1\)s. \(0\): fails to reject the corresponding hypothesis and \(1\): reject the corresponding hypothesis

References

Yoav Benjamini and Yosef Hochberg (1995). Controlling the false discovery rate: a practical and powerful approach to multiple testing, Journal of the Royal statistical society: series B (Methodological) 57.1: 289-300, doi: 10.2307/2346101.

Examples

Run this code
# NOT RUN {
   # Benjamini-Hochbergs step-up-procedure:
   pvalues <- c(0.50,0.01,0.001,0.69,0.02,0.05,0.0025)
   alpha <- 0.05
   BenHoch(pvalues, alpha)

   ## outputs:
   #[1] 0 1 1 0 1 0 1
# }

Run the code above in your browser using DataLab