File: ce.Rd

package info (click to toggle)
r-cran-modelmetrics 1.2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 300 kB
  • sloc: cpp: 252; sh: 10; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 883 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ce.R
\name{ce}
\alias{ce}
\alias{ce.default}
\alias{ce.lm}
\alias{ce.glm}
\alias{ce.randomForest}
\alias{ce.glmerMod}
\alias{ce.gbm}
\alias{ce.rpart}
\title{Classification error}
\usage{
ce(...)

\method{ce}{default}(actual, predicted, ...)

\method{ce}{lm}(modelObject, ...)

\method{ce}{glm}(modelObject, ...)

\method{ce}{randomForest}(modelObject, ...)

\method{ce}{glmerMod}(modelObject, ...)

\method{ce}{gbm}(modelObject, ...)

\method{ce}{rpart}(modelObject, ...)
}
\arguments{
\item{\dots}{additional parameters to be passed the the s3 methods}

\item{actual}{A vector of the labels}

\item{predicted}{A vector of predicted values}

\item{modelObject}{the model object. Currently supported \code{lm, glm, randomForest, glmerMod, gbm, rpart}}
}
\description{
Calculates the classification error
}