confusion.matrix.positive.predictive.value.simple: Confusion Matrix Measures - Positive Predictive...

View source: R/confusion.matrix.positive.predictive.value.simple.R

confusion.matrix.positive.predictive.valueR Documentation

Confusion Matrix Measures - Positive Predictive Value/Precision

Description

Calculate Positive Predictive Value (also called Precision), defined as TP/(TP+FP), for a given confusion matrix.

Usage

confusion.matrix.positive.predictive.value(confusion.matrix)

confusion.matrix.precision(confusion.matrix)

confusion.matrix.positive.predictive.value.simple(
  true.positive = 0,
  false.positive = 1
)

confusion.matrix.precision.simple(true.positive = 0, false.positive = 1)

Arguments

confusion.matrix

Matrix - confusion matrix.

true.positive

Scalar - Cases identified as true positive

false.positive

Scalar - Cases identified as false positive

Value

A scalar with computed value.


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