rfPermute (version 2.1.81)

exptdErrRate: Expected Error Rate

Description

Calculate expected OOB error rates (priors) for randomForest classification model based on random assignment and class sizes.

Usage

exptdErrRate(rf)

Arguments

rf

an object inheriting from link{randomForest}.

Value

a vector of expected error rates (priors) for each class.

Examples

Run this code
# NOT RUN {
data(mtcars)

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

# }

Run the code above in your browser using DataLab