Description Usage Arguments Value Examples
View source: R/absolute_error.R
Absolute error of the median calculated as
abs(true_value - median_prediction)
1 | ae_median_sample(true_values, predictions)
|
true_values |
A vector with the true observed values of size n |
predictions |
nxN matrix of predictive samples, n (number of rows) being the number of data points and N (number of columns) the number of Monte Carlo samples. Alternatively, predictions can just be a vector of size n |
vector with the scoring values
1 2 3 | true_values <- rnorm(30, mean = 1:30)
predicted_values <- rnorm(30, mean = 1:30)
ae_median_sample(true_values, predicted_values)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.