mae: Mean Absolute Error

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/mae.R

Description

This is a widely used criterion since the time of Laplace. Just as least-squares is optimal for mean-square error loss functions, least absolute deviation is optimal for mean absolute error loss functions. See Wikipedia article https://en.wikipedia.org/wiki/Mean_absolute_error.

Usage

1
mae(yTest, yHat)

Arguments

yTest

test data

yHat

predictions of the test data

Details

tba

Value

mean percentage absolute errors

Author(s)

A. I. McLeod

See Also

gcv, mse, mape, smape

Examples

1
mape(abs(rnorm(10)), rep(sqrt(2/pi),10))

gencve documentation built on May 29, 2017, 7:12 p.m.