MAE {measures} | R Documentation |
Defined as: mean(abs(response - truth))
MAE(truth, response)
truth |
[numeric] vector of true values |
response |
[numeric] vector of predicted values |
n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
MAE(truth, response)