crossVal: Cross Validation

Description Usage Arguments Value Note Author(s)

Description

Leave-one-out cross validation

Usage

1
crossVal(fit, lmcompare = FALSE, lmformula = fit$formula, plot = TRUE)

Arguments

fit

Object of class emulatorFit generated by fitEmulator or fitEmulatorData

lmcompare

Compare with a linear model fitted with OLS.

lmformula

The formula for the linear model to be used in the comparison, if lmcompare is TRUE.

Value

This function returns the mean RMSE of fits where one training point is left out for each fit.

Note

This function requires R package Hmisc to be installed.

Author(s)

Jeremy Oakley.


OakleyJ/MUCM documentation built on May 7, 2019, 9:01 p.m.