Skip to contents

Calculates specificity (true negative rate) from confusion matrix values

Usage

calculate_specificity(tn, fp)

Arguments

tn

Number of true negatives

fp

Number of false positives

Value

Numeric specificity value or NA when inputs are not valid