View source: R/accuracy_metrics.R
multilevel_MSE | R Documentation |
Multilevel version of mean_squared_error()
.
multilevel_MSE(
True_Q,
Pred_Q,
proba_levels,
prefix = "",
na.rm = FALSE,
give_names = TRUE,
sd = FALSE
)
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 |
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). |
sd |
Whether to return the squared error standard deviation (bool). |
A vector of length length(proba_levels)
giving the mean square errors
between each respective columns of True_Q
and Pred_Q
.
If give_names
is TRUE
, the output vector is named paste0(prefix, "MSE_q", proba_levels)
.
If sd==TRUE
a named list is instead returned, containing the "MSEs"
described above and
"SDs"
, their standard deviations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.