50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

bayefdr (version 0.2.1)

optimal: Retrieve the index of the optimal probability threshold.

Description

Retrieve the index of the optimal probability threshold.

Usage

optimal(x)

Value

The integer index of the optimal probability threshold.

Arguments

x

An object of class "bayefdr".

Examples

Run this code
 probs <- runif(100)
 e <- efdr_search(probs, target_efdr = 0.1)
 optimal(e)
 e[optimal(e), ]

Run the code above in your browser using DataLab