confusion.matrix.bookmaker.informedness.simple: Confusion Matrix Measures - Bookmaker Informedness

View source: R/confusion.matrix.bookmaker.informedness.simple.R

confusion.matrix.bookmaker.informednessR Documentation

Confusion Matrix Measures - Bookmaker Informedness

Description

Calculate Bookmaker Informedness, defined as TPR+TNR-1, for a given confusion matrix.

Usage

confusion.matrix.bookmaker.informedness(confusion.matrix)

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

Arguments

confusion.matrix

Matrix - confusion matrix.

true.positive

Scalar - Cases identified as true positive

false.negative

Scalar - Cases identified as false negative

count.positive

Scalar - Total cases identified as positive - optional if first four parameters are used.

false.positive

Scalar - Cases identified as false positive

true.negative

Scalar - Cases identified as true negative

count.negative

Scalar - Total cases identified as negative - optional if first four parameters are used.

true.positive.rate

Scalar - True positive rate, overrides other parameters used to calculate TPR.

true.negative.rate

Scalar - True negative rate, overrides other parameters used to calculate TNR.

Value

A scalar with computed value.


burrm/lolcat documentation built on July 22, 2022, 6:21 a.m.