rattle (version 5.3.0)

errorMatrix: 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.

References

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

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
errorMatrix(model)
# }

Run the code above in your browser using DataCamp Workspace