Response vector: numeric, binary, factor or survival.
model
Character. Any of c("linear", "logistic", "cox"). Is inferred from
Y when NULL.
balance
Boolean. Should the splits be balanced in terms of response labels?
kfold
Integer. Desired fold.
fixedfolds
Boolean. Should fixed splits be used for reproducibility?
nrepeat
Numeric. Number of repeats.
Value
List object with kfold*nrepeat elements containing the sample indices of the left-out samples per split.
Details
Creates (repeated), possibly balanced, splits of the samples. Computing time will often largely depend on
on kfold*nrepeat, the number of training-test splits evaluated.