Skip to contents

Calculates root-mean-square error (RMSE) metrics for a single `discourse.object` output, comparing model estimates of the simulated data against original target inputs.

Usage

get_rmse(result)

Arguments

result

A `discourse.object` produced by analysis functions (e.g., `optim_vec`, `optim_aov()`, `optim_lm()`, `optim()`).

Value

A named `list` of RMSE values. Possible elements:

rmse_cor

Numeric. RMSE of correlation estimates for LM- and LME-based objects.

rmse_reg

Numeric. RMSE of regression coefficient estimates for LM- and LME-based objects.

rmse_se

Numeric. RMSE of standard error estimates for LM- and LME-based objects.

rmse_F

Numeric. RMSE of F-values for ANOVA-based objects.

rmse_mean

Numeric. RMSE of means for vector-based objects.

rmse_sd

Numeric. RMSE of standard deviations for vector-based objects.

Examples

 if (FALSE) { # \dontrun{
# Regression-based result
result <- optim_lm(args = ..., ...)
get_rmse(result)
} # }