Learn R Programming

ModelMetrics (version 1.2.2.2)

ce: Classification error

Description

Calculates the classification error

Usage

ce(...)

# S3 method for default ce(actual, predicted, ...)

# S3 method for lm ce(modelObject, ...)

# S3 method for glm ce(modelObject, ...)

# S3 method for randomForest ce(modelObject, ...)

# S3 method for glmerMod ce(modelObject, ...)

# S3 method for gbm ce(modelObject, ...)

# S3 method for rpart ce(modelObject, ...)

Arguments

additional parameters to be passed the the s3 methods

actual

A vector of the labels

predicted

A vector of predicted values

modelObject

the model object. Currently supported lm, glm, randomForest, glmerMod, gbm, rpart