powered by
Mean of misclassification error rates on all individual classes.
BER(truth, response)
vector of true values
vector of predicted values
# NOT RUN { n = 20 set.seed(122) truth = as.factor(sample(c(1,2,3), n, replace = TRUE)) response = as.factor(sample(c(1,2,3), n, replace = TRUE)) BER(truth, response) # }
Run the code above in your browser using DataLab