View source: R/utils_analysis.R
| get_brier | R Documentation |
get_brier() computes the Brier score (statistic name brier_score).
get_classp() computes a weighted arithmetic mean of the winning class
assignment probabilities. The weights are frequencies of the true outcome
classes(statistic name class_p_outcome) and predicted classes
(class_p_fitted).
For cross-validation, mean metrics with 95% confidence intervals
are returned.
get_brier(data, ci_method = c("percentile", "bca", "norm"))
get_classp(data, ci_method = c("percentile", "bca", "norm"))
data |
a data frame with the columns |
ci_method |
method used for 95% CI calculation. |
a tibble with the columns statistic, estimate, lower_ci and
upper_ci storing the statistic name, its estimated value
as well as lower and upper limit of the 95% confidence interval.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.