stratifiedSamplingForCV: Divide data into 5 subsets using stratified sampling

Description Usage Arguments Value Author(s)

View source: R/fill-moc.R

Description

This function is used to do stratified subsampling based on the number of observations in each group in the response

Usage

1

Arguments

response

Vector of categorical responses

Value

The function returns a vector of labels to assign each observation to a different fold

Author(s)

Alessandra Cabassi alessandra.cabassi@mrc-bsu.cam.ac.uk


coca documentation built on July 8, 2020, 7:29 p.m.