View source: R/crossvalFolds.R
This function creates stratified cross validation folds, in case of unbalanced case-control groups.
1 | crossvalFolds(y, k = 10, stratified = T)
|
y |
binary vector with group assignment |
k |
Default k=10. Number of folds |
stratified |
Defaults to TRUE. Stratification TRUE/FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.