getLmCvFit: Estimate the prediction error of a linear model using...

Description Usage Arguments Value

View source: R/getLmCvFit.R

Description

Estimate the prediction error of a linear model using repeated k-fold cross validation.

Usage

1
getLmCvFit(X, y, nFolds = 10, nRepeats = 10, cvFoldIds = NULL)

Arguments

X

A data matrix with observation data along the rows and predictor data along the columns.

y

A response vector.

nFolds

The number of folds used in cross-validation.

nRepeats

The number of cross-validation repeats (with different fold assignments).

cvFoldIds

An nObs x nReplicates matrix with integer fold identifiers along the columns.

Value

A list with the following elements


CBIIT/rcellminerElasticNet documentation built on Sept. 8, 2020, 6:21 p.m.