bh_correction: Benjamini-Hochberg correction for p-value significance

View source: R/fct_cor_expression.R

bh_correctionR Documentation

Benjamini-Hochberg correction for p-value significance

Description

Determine significance of p-values after repeated hypothesis testing using the Benjamini-Hochberg correction.

Usage

bh_correction(x, fdr)

Arguments

x

vector of p-values. MUST be ordered from smallest to largest!

fdr

False discovery rate. Must be between 0 and 1.

Value

Logical vector of same length as x indicating whether the given p-values were sufficient to reject the null hypothesis with the given false discovery rate.


dwassarman/cellpanelr documentation built on Jan. 3, 2023, 8:27 a.m.