simpleCV: Perform simple CV, and return the MSE estimate

View source: R/simpleCV.R

simpleCVR 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


oosse documentation built on May 29, 2024, 10:35 a.m.