get_resids: Calculate residuals, variance, errors and correlation of the...

View source: R/utils_analysis.R

get_residsR Documentation

Calculate residuals, variance, errors and correlation of the outcome and fit.

Description

Calculates working residuals (get_resids()), variance of the outcome (get_var()), fir errors based on MSE and outcome variance (get_errors(): MAE, MSE, RMSE and pseudo-R-squared), and correlation between the outcome and fitted values (get_correlations(): Pearson, Spearman and Kendal TauB).

Usage

get_resids(data)

get_var(data)

get_errors(data)

get_correlations(data, ci = TRUE)

Arguments

data

a data frame with .outcome and .fitted columns.

ci

logical, should 95% confidence intervals be calculated?

Value

a numeric vector of residuals or a tibble with statistic values.


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