sample.for.cv: sample.for.cv

Description Usage Arguments Details Value Author(s)

View source: R/tuning.R

Description

sample.for.cv does sampling for cross validation

Usage

1
sample.for.cv (dat, v, seed)

Arguments

dat

a data frame. One of the columns must be named y and y should be 0/1 with 1 for case and 0 for control

v

v-fold cross validation

seed

seed for random number generators

Details

case and controls are sampled separately

Value

A list of two vector of integers: train and test, which refer to the rows of dat

Author(s)

Youyi Fong [email protected]


aucm documentation built on May 30, 2017, 3:14 a.m.

Related to sample.for.cv in aucm...