recall: Calculate recall

Description Usage Arguments Value Examples

Description

This function calcuates the fraction of the items within the class that the classifier correctly identifies.

Usage

1
recall(truth, pred)

Arguments

truth

A logical vector of true values

pred

A logical vector of values predicted by the model

Value

numeric value

Examples

1
2
3
t <- c(TRUE, TRUE, FALSE, TRUE, FALSE)
p <- c(TRUE, FALSE, TRUE, TRUE, FALSE)
recall(t, p)

mdlincoln/modeltests documentation built on May 22, 2019, 4:14 p.m.