.folds {palasso} | R Documentation |
Cross-validation folds
Description
Assigns samples to cross-validation folds, balancing the folds in the case of a binary or survival response.
Usage
.folds(y, nfolds, foldid = NULL)
Arguments
y |
response:
vector of length |
nfolds |
number of folds:
positive integer
( |
foldid |
fold identifiers:
vector of length |
Value
Returns the fold identifiers.
Examples
NA
[Package palasso version 0.0.9 Index]