Confusion Matrix
Generate a confusion matrix for Random Forest analyses with error rates translated into percent correctly classified, and columns for confidence intervals and expected classification rates (priors) added.
confusionMatrix(rf, conf.level = 0.95, threshold = 0.8)
rf |
a |
conf.level |
confidence level for the |
threshold |
threshold to test observed classification probability against. |
Eric Archer eric.archer@noaa.gov
data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars, importance = TRUE) confusionMatrix(rf)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.