R/fill-moc.R
stratifiedSamplingForCV.RdThis function is used to do stratified subsampling based on the number of observations in each group in the response
stratifiedSamplingForCV(response)
| response | Vector of categorical responses |
|---|
The function returns a vector of labels to assign each observation to a different fold