this function creates both stratified and non-stratified folds in regression
regr_folds(folds, RESP, stratified = FALSE)
folds | is an integer specifying the number of folds |
---|---|
RESP | is the response variable |
stratified | is a boolean specifying if the folds should be stratfied |
a list of indices