specificity: Calculate specificity

Description Usage Arguments Value Examples

Description

This function calcuates the fraction of the items not in the class that the classifier correctly identifies

Usage

1
specificity(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

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