Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

CVFolds

Generate list of row numbers for each fold in the cross-validation


Description

Generate list of row numbers for each fold in the cross-validation. CVFolds is used in the SuperLearner to create the cross-validation splits.

Usage

CVFolds(N, id, Y, cvControl)

Arguments

N

Sample size

id

Optional cluster id variable. If present, all observations in the same cluster will always be in the same split.

Y

outcome

cvControl

Control parameters for the cross-validation step. See SuperLearner.CV.control for details.

Value

validRows

A list of length V where each element in the list is a vector with the row numbers of the corresponding validation sample.

Author(s)

Eric C Polley epolley@uchicago.edu


SuperLearner

Super Learner Prediction

v2.0-28
GPL-3
Authors
Eric Polley [aut, cre], Erin LeDell [aut], Chris Kennedy [aut], Sam Lendle [ctb], Mark van der Laan [aut, ths]
Initial release
2021-05-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.