ae_median_quantile {scoringutils} | R Documentation |
Absolute Error of the Median (Quantile-based Version)
Description
Absolute error of the median calculated as
\textrm{abs}(\textrm{true\_value} - \textrm{prediction})
The function was created for internal use within score()
, but can also
used as a standalone function.
Usage
ae_median_quantile(true_values, predictions, quantiles = NULL)
Arguments
true_values |
A vector with the true observed values of size n |
predictions |
numeric vector with predictions, corresponding to the
quantiles in a second vector, |
quantiles |
numeric vector that denotes the quantile for the values
in |
Value
vector with the scoring values
See Also
ae_median_sample()
, abs_error()
Examples
true_values <- rnorm(30, mean = 1:30)
predicted_values <- rnorm(30, mean = 1:30)
ae_median_quantile(true_values, predicted_values, quantiles = 0.5)
[Package scoringutils version 1.2.2 Index]