TSS: Calculate True Skill Statistic (TSS)

View source: R/skill.R

TSSR Documentation

Calculate True Skill Statistic (TSS)

Description

Calculates the True Skill Statistic (TSS) from confusion matrix elements

Usage

TSS(TP, TN, FP, FN)

## S4 method for signature 'numeric,numeric,numeric,numeric'
TSS(TP, TN, FP, FN)

Arguments

TP

Number of True Positives

TN

Number of True Negatives

FP

Number of False Positives

FN

Number of False Negatives

Details

TSS ranges from -1 to +1, where +1 indicates perfect agreement and values of zero or less indicate a performance no better than random

Value

Numeric value of TSS (sensitivity + specificity - 1)

Examples

## Not run: 
tss_value <- TSS(TP=10, TN=8, FP=2, FN=3)

## End(Not run)


laurieKell/FLCandy documentation built on April 17, 2025, 5:23 p.m.