chickadee » statistics » holm-adjust

holm-adjust p-valuesprocedure

Returns the Holm (1979) adjusted p-values as a list, in the order of the input; the result is the same as that of p.adjust(p, "holm") in R. With m p-values sorted from smallest to largest, the k-th one is multiplied by m - k + 1 and capped at 1, and a running maximum then keeps the adjusted values in the same order as the raw ones. Rejecting the hypotheses whose adjusted p-value is at most alpha controls the family-wise error rate at alpha, and never rejects fewer hypotheses than the Bonferroni correction. Exact inputs give exact results.

> (holm-adjust '(1/100 4/100 3/100 5/1000))
(3/100 3/50 3/50 1/50)