confusion: Calculate confusion matrix

View source: R/confusion.R

confusionR Documentation

Calculate confusion matrix

Description

This function calculates the confusion matrix.

Usage

confusion(truth_name, prob_name, threshold = 0.5)

Arguments

truth_name

('character(1L)') Character containing the name of the vector of 0-1-values encoded as integer or numeric.

prob_name

('character(1L)') Character containing the name of the vector of probabilities.

threshold

('numeric(1L)') Threshold used to transform probabilities into classes (default = 0.5).

Value

Confusion matrix.

Author(s)

Daniel S.


difuture-lmu/dsBinVal documentation built on Oct. 9, 2024, 8:43 a.m.