opt_weight: Calculate optimal weight

Description Usage Arguments Value

View source: R/svmroc.R

Description

opt_weight computes the optimal point on the ROC curve, calculated as the point closest to (0, 1) in Euclidean distance.

Usage

1
opt_weight(object)

Arguments

object

An object of class svmroc or conf_band.

Value

A list with the following components: weight, the optimal weight; opt_sens, the sensitivity at the optimal weight; opt_spec, the specificity at the optimal weight.


djluckett/svmroc documentation built on Oct. 6, 2019, 12:42 a.m.