View source: R/utils_analysis.R
analyze_reg | R Documentation |
For regression: computes fit errors and fit - outcome correlations. For binary and multiple-class models, C-index, receiver-operator characteristic, Cohen's kappa and accuracy is retrieved. Single class-relevant statistics are averaged over all classes in case of multi-class predictions.
analyze_reg(data, ci = FALSE)
analyze_class(data, classes, c_index = TRUE, ci = FALSE)
data |
a data frame with .outcome and .fitted columns. |
ci |
should 95% CI be computed? |
classes |
a vector with classes of the outcome. |
c_index |
logical, should concordance index be computed? |
a tibble with the statistic values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.