analyze_reg: Analyze regression, binary or multi-class fit.

View source: R/utils_analysis.R

analyze_regR Documentation

Analyze regression, binary or multi-class fit.

Description

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.

Usage

analyze_reg(data, ci = FALSE)

analyze_class(data, classes, c_index = TRUE, ci = FALSE)

Arguments

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?

Value

a tibble with the statistic values.


PiotrTymoszuk/caretExtra documentation built on Oct. 15, 2023, 10:03 p.m.