Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

confusionMatrix

Confusion Matrix


Description

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.

Usage

confusionMatrix(rf, conf.level = 0.95, threshold = 0.8)

Arguments

rf

a randomForest object.

conf.level

confidence level for the binom.test confidence interval

threshold

threshold to test observed classification probability against.

Author(s)

See Also

Examples

data(mtcars)

rf <- randomForest(factor(am) ~ ., mtcars, importance = TRUE)
confusionMatrix(rf)

rfPermute

Estimate Permutation p-Values for Random Forest Importance Metrics

v2.1.81
GPL (>= 2)
Authors
Eric Archer [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.