calc_accuracy: Calculate Accuracy

Description Usage Arguments Details Value See Also Examples

View source: R/calc_accuracy.R

Description

Calculates accuracy and related metrics.

Usage

1
calc_accuracy(tabble)

Arguments

tabble

A frequency table created with table

Details

Calculates accuracy, lower and upper bounds, the guessing rate and p-value of the accuracy vs. the guessing rate. This function is called by confusion_matrix, but if this is all you want, you can simply supply the table to this function.

Value

A tibble with the corresponding statistics

See Also

binom.test

Examples

1
2
3
p = sample(letters[1:4], 250, replace = TRUE, prob = 1:4)
o = sample(letters[1:4], 250, replace = TRUE, prob = 1:4)
calc_accuracy(table(p, o))

m-clark/confusionMatrix documentation built on July 15, 2020, 4:16 p.m.