Learn R Programming

lares (version 4.4)

mmetrics: Classification Model Metrics

Description

This function lets the user get a confusion matrix and accuracy, and for for binary classification models: AUC, Precision, Sensitivity, and Specificity.

Usage

mmetrics(tag, score, thresh = 0.5, plot = FALSE, size = 2.5,
  roc = FALSE)

Arguments

tag

Vector. Real known label

score

Vector. Predicted value or model's result

thresh

Numeric. Value which splits the results for the confusion matrix.

plot

Boolean. Plot a Confusion Matrix graph?

size

Numeric. Change bubble's size if needed

roc

Boolean. Plot ROC Curce with AUC?