rmse: Calculate RMSE from cross-validation results

View source: R/rmse.R

rmseR Documentation

Calculate RMSE from cross-validation results

Description

Calculate RMSE from cross-validation results

Usage

rmse(preds, actual, test_folds, version = 1)

Arguments

preds

Predicted values or score

actual

Known value

test_folds

Length n vector assigning each vector to a given test fold

version

1 (default) or 2. 1 averages the RMSE over folds; 2 averages the MSE and then takes the square root.

Value

Dataframe of results, including RMSE, standard error, and CI

References

Faber, N. K. M. (1999). Estimating the uncertainty in estimates of root mean square error of prediction: application to determining the size of an adequate test set in multivariate calibration. Chemometrics and Intelligent Laboratory Systems, 49(1), 79-89.


ck37/ckTools documentation built on April 29, 2023, 11:47 p.m.