powered by
Get data frame of case predictions for training data along with vote distributions.
casePredictions(rf)
an object inheriting from randomForest.
randomForest
A data frame containing columns of original and predicted cases, whether they were correctly classified, and vote distributions.
# NOT RUN { data(mtcars) rf <- randomForest(factor(am) ~ ., mtcars) casePredictions(rf) # }
Run the code above in your browser using DataLab