optimal_roc: Optimal ROC Threshold

Description Usage Arguments Details Value Examples

Description

Functions to identify the optimal ROC threshold according to various optimization criteria.

Usage

1
2
3
4
5
6
7
8
9
index_of_union(sens = NULL, spec = NULL, thr = NULL, auc = NULL)

youden(sens = NULL, spec = NULL, thr = NULL)

top_left(sens = NULL, spec = NULL, thr = NULL)

min_pval(time = NULL, status = NULL, pred = NULL)

conc_prob(sens = NULL, spec = NULL, thr = NULL)

Arguments

sens

Sensitivities

spec

Specificities

thr

Threshold values for ROC

auc

Area under the ROC curve

time

Time

status

Censoring status

pred

Predictions

Details

Value

A scalar containing the chosen threshold.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Simulate some data
sens <- runif(100,0,1)
spec <- runif(100,0,1)
thr <- runif(100,0,1)
auc <- runif(1,0,1)

index_of_union(sens, spec, thr, auc)
youden(sens, spec, thr)
top_left(sens, spec, thr)
conc_prob(sens, spec, thr)

mattwarkentin/precogs documentation built on Jan. 12, 2020, 6:24 p.m.