getFDRThreshold: Find false discovery rate threshold

Description Usage Arguments Value

View source: R/G_functions.R

Description

Given a vector of p-values and a set false discovery rate alpha the function returns the lowest p-value in the vector for which the Benjamini-Hochberg adjusted p-value (ie q-value) is less than that alpha.

Usage

1
getFDRThreshold(pvalues, alpha = 0.01)

Arguments

pvalues

a vector of p-values

alpha

the required false discovery rate alpha

Value

The p-value threshold that corresponds to the Benjamini-Hochberg adjusted p-value at the FDR set by alpha.


bmansfeld/QTLseqr documentation built on Jan. 24, 2020, 3:56 p.m.