powered by
Defined as: sum(abs(response - truth))"
SAE(truth, response)
[numeric] vector of true values
[numeric] vector of predicted values
# NOT RUN { n = 20 set.seed(123) truth = rnorm(n) response = rnorm(n) SAE(truth, response) # }
Run the code above in your browser using DataLab