Calculates the mean absolute error
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, ...)
additional parameters to be passed the the s3 methods
A vector of the labels
A vector of predicted values
the model object. Currently supported glm, randomForest, glmerMod, gbm