createFolds {JICO}R Documentation

Utility function to create folds for stratified samples

Description

This function generate data folds for cross validation given stratified samples

Usage

createFolds(strat_id, k)

Arguments

strat_id

A vector of the stratified sample id. E.g. In total of 5 samples, first three from group 1, last two from group 2 -> c(1, 1, 1, 2, 2)

k

Number of folds to create.

Value

A list of sample indices in k folds.


[Package JICO version 0.0 Index]