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

pctCorrect

Percent Correctly Classified


Description

Calculate the percent of individuals correctly classified in a specified percent of trees in the forest.

Usage

pctCorrect(rf, pct = c(seq(0.8, 0.95, 0.05), 0.99))

Arguments

rf

a randomForest or rfPermute object.

pct

vector of minimum percent of trees voting for each class. Can be 0:1 or 0:100.

Value

a matrix giving the percent of individuals correctly classified in each class and overall for each threshold value specified in pct.

Author(s)

Examples

data(mtcars)

rf <- randomForest(factor(am) ~ ., mtcars, importance = TRUE)
pctCorrect(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.