casePredictions: Case Predictions

View source: R/casePredictions.R

casePredictionsR Documentation

Case Predictions

Description

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

Usage

casePredictions(x)

Arguments

x

a rfPermte or randomForest model object.

Value

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

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

library(randomForest)
data(mtcars)

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

cp <- casePredictions(rf)
cp


rfPermute documentation built on Aug. 24, 2023, 1:08 a.m.