powered by
Calculates weighted median absolute error of predicted values. The smaller the value, the better.
medae(actual, predicted, w = NULL, ...)
Observed values.
Predicted values.
Optional case weights.
Further arguments passed to weighted_mean.
weighted_mean
A numeric vector of length one.
# NOT RUN { medae(1:10, c(2:10, 100)) medae(1:10, c(2:10, 100), w = rep(1, 10)) medae(1:10, c(2:10, 100), w = 1:10) # }
Run the code above in your browser using DataLab