ce: Classification error

Description Usage Arguments

View source: R/ce.R

Description

Calculates the classification error

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
ce(...)

## Default S3 method:
ce(actual, predicted, ...)

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

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

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

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

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

## S3 method for class '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


JackStat/ModelMetrics documentation built on Nov. 7, 2018, 5:19 a.m.