simpleCV {oosse}R Documentation

Perform simple CV, and return the MSE estimate

Description

Perform simple CV, and return the MSE estimate

Usage

simpleCV(y, x, fitFun, predFun, nFolds)

Arguments

y

The vector of outcome values

x

The matrix of predictors

fitFun

The function for fitting the prediction model

predFun

The function for evaluating the prediction model

nFolds

The number of outer folds for cross-validation

Value

The MSE estimate


[Package oosse version 1.0.11 Index]