Learn R Programming

farr (version 0.2.39)

confusion_stats: Confusion statistics.

Description

A function returning sensitivity and precision.

Usage

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

Value

vector including sensitivity and precision

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.