measures (version 0.2)

MAE: Mean of absolute errors

Description

Defined as: mean(abs(response - truth))

Usage

MAE(truth, response)

Arguments

truth

[numeric] vector of true values

response

[numeric] vector of predicted values

Examples

Run this code
# NOT RUN {
n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
MAE(truth, response)
# }

Run the code above in your browser using DataLab