confusion.matrix.true.negative.rate.simple: Confusion Matrix Measures - True Negative Rate/Specificity

View source: R/confusion.matrix.true.negative.rate.simple.R

confusion.matrix.true.negative.rateR Documentation

Confusion Matrix Measures - True Negative Rate/Specificity

Description

Calculate True Negative Rate (also called Specificity), defined as TN/N, for a given confusion matrix.

Usage

confusion.matrix.true.negative.rate(confusion.matrix)

confusion.matrix.specificity(confusion.matrix)

confusion.matrix.true.negative.rate.simple(
  true.negative = 0,
  false.positive = 1,
  count.negative = true.negative + false.positive
)

confusion.matrix.specificity.simple(
  true.negative = 0,
  false.positive = 1,
  count.negative = true.negative + false.positive
)

Arguments

confusion.matrix

Matrix - confusion matrix.

false.positive

Scalar - Cases identified as false positive - optional if count.negative specified

count.negative

Scalar - Total cases identified as negative - optional if FP specified.

true.positive

Scalar - Cases identified as true positive

Value

A scalar with computed value.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.