Learn R Programming

HDLSSkST (version 2.1.0)

Holm: Holm's step-down-procedure (1979)

Description

Holm's step-down-procedure (1979) for mutiple tests.

Usage

Holm(pvalues, alpha)

Arguments

pvalues

vector of p-values

alpha

numeric, family wise error 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

Sture Holm (1979). A simple sequentially rejective multiple test procedure, Scandinavian journal of statistics, 65-70, doi:10.2307/4615733.

Examples

Run this code
# NOT RUN {
   # Holm's step down procedure:
   pvalues <- c(0.50,0.01,0.001,0.69,0.02,0.05,0.0025)
   alpha <- 0.05
   Holm(pvalues, alpha)

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

Run the code above in your browser using DataLab