errorMatrix: Generate an error matrix from actua and predicted data.

View source: R/errorMatrix.R

errorMatrixR Documentation

Generate an error matrix from actua and predicted data.

Description

An error matrix reports the true/false potisitve/negative rates.

Usage

errorMatrix(actual,
                        predicted,
                        percentage=TRUE,
                        digits=ifelse(percentage,1,3),
                        count=FALSE)

Arguments

actual

a vector of true values.

predicted

a vector of predicted values.

percentage

return percentages.

digits

the number of digits to round results.

count

return counts.

Author(s)

Graham.Williams@togaware.com

References

Package home page: https://togaware.com/projects/rattle/

Examples

  ## Not run: errorMatrix(model)

rattle documentation built on Feb. 9, 2026, 1:07 a.m.