bhAdjust: p-value thresholding with Bonferroni-Holm correction

Description Usage Arguments Value Examples

View source: R/homework.R

Description

Adjusts a set of p-values using the Bonferroni-Holm correction, and returns a logical vector indicating whether each corresponding adjusted p-value is below 0.05 (alpha of 0.05).

Usage

1

Arguments

p

A numeric vector of p-values from an analysis.

Value

A logical vector indicating whether or not each of the p-values satisfy an alpha of 0.05, following Bonferroni-Holm correction (0 is no, 1 is yes).

Examples

1
2
3
p=seq(0.0025,0.0250,0.0025)
names(p)=paste('Test',LETTERS[seq(1,length(p))])
bhAdjust(p)

loublanpain/BMI585FinalProjectLouBlanpain documentation built on Dec. 21, 2021, 11:49 a.m.