confusion.matrix.negative.likelihood.ratio.simple: Confusion Matrix Measures - Negative Likelihood Ratio

View source: R/confusion.matrix.negative.likelihood.ratio.simple.R

confusion.matrix.negative.likelihood.ratioR Documentation

Confusion Matrix Measures - Negative Likelihood Ratio

Description

Calculate Negative Likelihood Ratio, defined as FNR/TNR, for a given confusion matrix.

Usage

confusion.matrix.negative.likelihood.ratio(confusion.matrix)

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

Arguments

confusion.matrix

Matrix - confusion matrix.

false.negative

Scalar - Cases identified as false negative - optional if FNR specified

true.positive

Scalar - Cases identified as true positive - optional if FNR specified

count.positive

Scalar - Total cases identified as positive - optional if TNR specified.

true.negative

Scalar - Cases identified as true negative - optional if TNR specified

false.positive

Scalar - Cases identified as false positive - optional if TNR specified

count.negative

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

true.negative.rate

Scalar - True Negative Rate (TNR) - optional if TNR parameters specified.

false.negative.rate

Scalar - False Negative Rate (FNR) - optional if FNR parameters specified.

Value

A scalar with computed value.


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