View source: R/misclassification.R
misclassification | R Documentation |
misclassification
calculate misclassification error between predicted class and true class
misclassification(pred, true)
pred |
Predicted class |
true |
Actual class |
Misclassification error for binary or multiclass outcome.
To calculate the Area Under the Curve (AUC) for binary or multiclass outcomes, please refer to the pROC
.
Y1 <- rbinom(10,1,0.5)
Y2 <- rnorm(10,1,0.5)
misclassification(Y1,Y2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.