tpr | R Documentation |
This function returns the true positive rate given the number of true-positives and false-negatives. The respective formula is tpr = tp / (tp + fn)
tpr(tp, fn)
tp |
Number of true-positives |
fn |
Number of false-neagtives |
The value of the true positive rate
# Reference
# Prediction 1 0
# 1 892 398
# 0 446 2278
tpr(tp = 892, fn = 446)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.