tpr: True positive rate

View source: R/utils.R

tprR Documentation

True positive rate

Description

This function returns the true positive rate given the number of true-positives and false-negatives. The respective formula is tpr = tp / (tp + fn)

Usage

tpr(tp, fn)

Arguments

tp

Number of true-positives

fn

Number of false-neagtives

Value

The value of the true positive rate

Examples

#          Reference
# Prediction    1    0
#          1  892  398
#          0  446 2278
tpr(tp = 892, fn = 446)


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