TSS | R Documentation |
Calculates the True Skill Statistic (TSS) from confusion matrix elements
TSS(TP, TN, FP, FN)
## S4 method for signature 'numeric,numeric,numeric,numeric'
TSS(TP, TN, FP, FN)
TP |
Number of True Positives |
TN |
Number of True Negatives |
FP |
Number of False Positives |
FN |
Number of False Negatives |
TSS ranges from -1 to +1, where +1 indicates perfect agreement and values of zero or less indicate a performance no better than random
Numeric value of TSS (sensitivity + specificity - 1)
## Not run:
tss_value <- TSS(TP=10, TN=8, FP=2, FN=3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.