Mean Absolute Error
Calculates weighted mean absolute error of predicted values. The smaller the value, the better.
mae(actual, predicted, w = NULL, ...)
actual |
Observed values. |
predicted |
Predicted values. |
w |
Optional case weights. |
... |
Further arguments passed to |
A numeric vector of length one.
mae(1:10, c(1:9, 12)) mae(1:10, c(1:9, 12), w = rep(1, 10)) mae(1:10, c(1:9, 12), w = 1:10)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.