View source: R/metrics_point_forecasts.R
ae_median_quantile | R Documentation |
Absolute error of the median calculated as
abs(true_value - median_prediction)
The function was created for internal use within score()
, but can also
used as a standalone function.
ae_median_quantile(true_values, predictions, quantiles = NULL)
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 |
vector with the scoring values
ae_median_sample()
, abs_error()
true_values <- rnorm(30, mean = 1:30) predicted_values <- rnorm(30, mean = 1:30) ae_median_quantile(true_values, predicted_values, quantiles = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.