View source: R/utils_analysis.R
get_resids | R Documentation |
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).
get_resids(data)
get_var(data)
get_errors(data)
get_correlations(data, ci = TRUE)
data |
a data frame with .outcome and .fitted columns. |
ci |
logical, should 95% confidence intervals be calculated? |
a numeric vector of residuals or a tibble with statistic values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.