View source: R/accuracy_metrics.R
multilevel_q_pred_error | R Documentation |
Multilevel version of quantile_prediction_error()
.
multilevel_q_pred_error(
y,
Pred_Q,
proba_levels,
prefix = "",
na.rm = FALSE,
give_names = TRUE
)
y |
Vector of observations. |
Pred_Q |
Matrix of of size |
proba_levels |
Vector of probability levels at which the predictions were made.
Must be of length |
prefix |
A string prefix to add to the output's names (if |
na.rm |
A logical value indicating whether |
give_names |
Whether to name the output errors (bool). |
A vector of length length(proba_levels)
giving the quantile prediction error calibration metrics
between each column of Pred_Q
and the observations.
If give_names
is TRUE
, the output vector is named paste0(prefix, "qPredErr_q", proba_levels)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.