File: mae.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 (38 lines) | stat: -rw-r--r-- 837 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mae.R
\name{mae}
\alias{mae}
\alias{mae.default}
\alias{mae.glm}
\alias{mae.randomForest}
\alias{mae.glmerMod}
\alias{mae.gbm}
\alias{mae.rpart}
\title{Mean absolute error}
\usage{
mae(...)

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

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

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

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

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

\method{mae}{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{glm, randomForest, glmerMod, gbm}}
}
\description{
Calculates the mean absolute error
}