Function to calculate the corresponding expected False discovery rate (eFDR) for a given threshold

EFDR(prob, threshold = 0.9)

Arguments

prob

A numeric vector of probabilities

threshold

A numeric value between 0 and 1

Value

A numeric value indicating the expected FDR

Examples

EFDR(c(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1), 0.9)
#> [1] 0.05