powered by
Calculate the percent of individuals correctly classified in a specified percent of trees in the forest.
pctCorrect(rf, pct = c(seq(0.8, 0.95, 0.05), 0.99))
a randomForest or rfPermute object.
randomForest
rfPermute
vector of minimum percent of trees voting for each class. Can be 0:1 or 0:100.
0:1
0:100
a matrix giving the percent of individuals correctly classified in each class and overall for each threshold value specified in pct.
pct
# NOT RUN { data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars, importance = TRUE) pctCorrect(rf) # }
Run the code above in your browser using DataLab