confusionMatrix {rfPermute} | R Documentation |
Confusion Matrix
Description
Generate a confusion matrix for Random Forest classification models with error rates translated into percent correctly classified, and columns for confidence intervals added.
Usage
confusionMatrix(x, conf.level = 0.95, threshold = NULL)
plotConfMat(x, title = NULL, plot = TRUE)
Arguments
x |
a |
conf.level |
confidence level for the |
threshold |
threshold to test observed classification
probability against. Should be a number between 0 and 1.
If not |
title |
a title for the plot. |
plot |
display the plot? |
Author(s)
Eric Archer eric.archer@noaa.gov
See Also
Examples
library(randomForest)
data(mtcars)
rf <- randomForest(factor(am) ~ ., mtcars)
confusionMatrix(rf)
confusionMatrix(rf, conf.level = 0.75)
confusionMatrix(rf, threshold = 0.7)
confusionMatrix(rf, threshold = 0.8)
confusionMatrix(rf, threshold = 0.95)
[Package rfPermute version 2.5.2 Index]