Learn R Programming

ModelMetrics (version 1.2.2.2)

mae: Mean absolute error

Description

Calculates the mean absolute error

Usage

mae(...)

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

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

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

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

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

# S3 method for rpart mae(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 glm, randomForest, glmerMod, gbm