balanced.folds {SubgrpID} | R Documentation |
balanced.folds
Description
Create balanced folds for cross-validation.
Usage
balanced.folds(y, nfolds = min(min(table(y)), 10))
Arguments
y |
the response vector |
nfolds |
number of folds |
Details
Create balanced folds for cross-validation.
Value
This function returns balanced folds
[Package SubgrpID version 0.12 Index]