Learn R Programming

rfPermute (version 2.5.2)

casePredictions: Case Predictions

Description

Construct a data frame of case predictions for training data along with vote distributions.

Usage

casePredictions(x)

Value

A data frame containing columns of original and predicted cases, whether they were correctly classified, and vote distributions among cases.

Arguments

x

a rfPermte or randomForest model object.

Author

Eric Archer eric.archer@noaa.gov

Examples

Run this code
library(randomForest)
data(mtcars)

rf <- randomForest(factor(am) ~ ., mtcars)

cp <- casePredictions(rf)
cp

Run the code above in your browser using DataLab