optimal: Retrieve the index of the optimal probability threshold.

View source: R/bayefdr.R

optimalR Documentation

Retrieve the index of the optimal probability threshold.

Description

Retrieve the index of the optimal probability threshold.

Usage

optimal(x)

Arguments

x

An object of class "bayefdr".

Value

The integer index of the optimal probability threshold.

Examples

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

bayefdr documentation built on Oct. 27, 2022, 1:05 a.m.