| me_vec | R Documentation |
Calculate the mean error of a numeric vector.
me_vec(truth, estimate, na_rm = TRUE)
truth |
Numeric vector containing the actual values. |
estimate |
Numeric vector containing the forecasts. |
na_rm |
Logical value. If |
me_vec() computes the average signed forecast error
truth - estimate. Positive values indicate that forecasts are, on
average, below the observed values. Negative values indicate that forecasts
are, on average, above the observed values.
The metric is reported in the same units as the original data.
A numeric value.
Other accuracy functions:
mae_vec(),
make_accuracy(),
make_errors(),
mape_vec(),
mpe_vec(),
mse_vec(),
rmse_vec(),
smape_vec()
truth <- c(10, 20, 30)
estimate <- c(8, 22, 25)
me_vec(truth, estimate)
truth_na <- c(10, 20, NA)
estimate_na <- c(8, 22, 25)
me_vec(truth_na, estimate_na)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.