View source: R/accuracy_metrics.R
multilevel_pred_bias | R Documentation |
Multilevel version of prediction_bias()
.
multilevel_pred_bias(
True_Q,
Pred_Q,
proba_levels,
square_bias = FALSE,
prefix = "",
na.rm = FALSE,
give_names = TRUE
)
True_Q |
Matrix of size |
Pred_Q |
Matrix of the same size as |
proba_levels |
Vector of probability levels at which the predictions were made.
Must be of length |
square_bias |
Whether to return the square bias (bool); defaults to |
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 MSEs (bool). |
A vector of length length(proba_levels)
giving the (square) bias
of each columns of predictions in Pred_Q
for the respective True_Q
.
If give_names
is TRUE
, the output vector is named paste0(prefix, "MSE_q", proba_levels)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.