Learn R Programming

evabic (version 0.1.4)

ebc_confusion: Confusion matrix

Description

Compute the the confusion matrix

Usage

ebc_confusion(detected, true, all, m = length(all), prop = FALSE)

Value

A 2*2 named matrix.

Arguments

detected

Vector of elements that are detected.

true

Vector of element that are supposed to be detected.

all

Vector of all elements.

m

Total number of elements.

prop

Logical, default to FALSE. Should the matrix sum to one?

Details

See ebc_allmeasures for the description of the measures.

Examples

Run this code
ebc_confusion(detected = c("A", "C", "D"), true = c("A", "B", "C"), m = 6)

Run the code above in your browser using DataLab