optimal: Retrieve the index of the optimal probability threshold.

Description Usage Arguments Value Examples

View source: R/bayefdr.R

Description

Retrieve the index of the optimal probability threshold.

Usage

1

Arguments

x

An object of class "bayefdr".

Value

The integer index of the optimal probability threshold.

Examples

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

VallejosGroup/bayefdr documentation built on Sept. 29, 2021, 7:13 p.m.