computeErrorLOOCV: LOOCV Error Rate

Description Usage Arguments

View source: R/computeErrorLOOCV.R

Description

This function computes the error of different model fits via leave-one-out cross-validation. However, typically this function will be called via computeErrorRate and not directly.

Usage

1
computeErrorLOOCV(data, model, cvGroup, imputationParameters)

Arguments

data

A data.table containing the data.

model

The model fit to x, should be of class ensembleModel.

cvGroup

A vector of the same length as nrow(data). Entries of the vector should be integers from 1 to the number of cross-validation groups (typically 10). This should be randomly assigned, and is usually created by ensembleImpute.

imputationParameters

A list of the parameters for the imputation algorithms. See defaultImputationParameters() for a starting point.


SWS-Methodology/faoswsImputation documentation built on April 7, 2018, 10:12 p.m.