SAE {measures} | R Documentation |
Sum of absolute errors
Description
Defined as: sum(abs(response - truth))"
Usage
SAE(truth, response)
Arguments
truth |
[numeric] vector of true values |
response |
[numeric] vector of predicted values |
Examples
n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
SAE(truth, response)
[Package measures version 0.3 Index]