Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

medae

Median Absolute Error


Description

Calculates weighted median absolute error of predicted values. The smaller the value, the better.

Usage

medae(actual, predicted, w = NULL, ...)

Arguments

actual

Observed values.

predicted

Predicted values.

w

Optional case weights.

...

Further arguments passed to weighted_mean.

Value

A numeric vector of length one.

Examples

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)

MetricsWeighted

Weighted Metrics, Scoring Functions and Performance Measures for Machine Learning

v0.5.2
GPL (>= 2)
Authors
Michael Mayer [aut, cre, cph], Christian Lorentzen [ctb, rev]
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.