Generate list of row numbers for each fold in the cross-validation. CVFolds
is used in the SuperLearner
to create the cross-validation splits.
CVFolds(N, id, Y, cvControl)
A list of length V where each element in the list is a vector with the row numbers of the corresponding validation sample.
Sample size
Optional cluster id variable. If present, all observations in the same cluster will always be in the same split.
outcome
Control parameters for the cross-validation step. See SuperLearner.CV.control
for details.
Eric C Polley polley.eric@mayo.edu