powered by
misclassification calculate misclassification error between predicted class and true class
misclassification
misclassification(pred, true)
Misclassification error for binary or multiclass outcome.
Predicted class
Actual class
To calculate the Area Under the Curve (AUC) for binary or multiclass outcomes, please refer to the pROC.
pROC
Y1 <- rbinom(10,1,0.5) Y2 <- rnorm(10,1,0.5) misclassification(Y1,Y2)
Run the code above in your browser using DataLab