Calculate the optimal probability classification threshold using Youden's J statistic.
Arguments
- estimates
A vector of classification probabilities. Values should represent the probability of
1
in thetruth
argument.- truth
An integer vector of
0
and1
representing the true classifications.
Details
Youden's J statistic (Youden, 1950) is defined as sensitivty
+
specificity
- 1. As such, the value of the J-index ranges from [0, 1],
and is 1 when there are no false positive and no false negatives (i.e.,
sensitivity and specificity). The J-index is calculated for each possible
threshold defined by the ROC curve (e.g., create_roc()
). The optimality
criterion is then defined as:
$$\text{max}(sensitivity + specificity - 1)$$
References
Youden, W. J. (1950). Index for rating diagnostic tests. Cancer, 3(1), 32-35. doi:10.1002/1097-0142(1950)3:1<32::AID-CNCR2820030106>3.0.CO;2-3
See also
Other optimal threshold methods:
calc_cz()
,
calc_gmean()
,
calc_topleft()