confusion_stats: Confusion statistics.

View source: R/roc.R

confusion_statsR Documentation

Confusion statistics.

Description

A function returning sensitivity and precision.

Usage

confusion_stats(scores, response, predicted = NULL, k = NULL)

Arguments

scores

Probability that response is true or 1.

response

Responses coded as logical or 0-or-1.

predicted

Predicted value coded as 0-or-1.

k

Percentage to classify as TRUE or 1.

Value

vector including sensitivity and precision


farr documentation built on May 29, 2024, 6:41 a.m.