tnr: True negative rate

View source: R/utils.R

tnrR Documentation

True negative rate

Description

This function returns the true negative rate given the number of true-negatives and false-positives. The respective formula is tnr = tn / (tn + fp)

Usage

tnr(tn, fp)

Arguments

tn

Number of true-negatives

fp

Number of false-positives

Value

The value of the false positive rate

Examples

#          Reference
# Prediction    1    0
#          1  892  398
#          0  446 2278
tpr(tn = 2278, fp = 398)


mai00fti/prettyPROC documentation built on Aug. 16, 2024, 4:48 p.m.