View source: R/utils_benchmarks.R
get_error | R Documentation |
This function calculates various error metrics for a given prediction object.
get_error(obj, actual, level = 95)
obj |
A prediction object containing mean predictions and intervals. |
actual |
A numeric vector of actual values. |
level |
The confidence level for the prediction intervals. |
A numeric vector containing the error metrics.
obj <- list(mean = 10, lower = 8, upper = 12)
actual <- 11
get_error(obj, actual)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.