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, 1.

predicted

Predicted value coded as 0, 1

k

Percentage to classify as TRUE or 1.

Value

vector including sensitivity and precision


farr documentation built on Feb. 16, 2023, 8:11 p.m.