Description Usage Arguments Details Value Author(s)
sample.for.cv
does sampling for cross validation
1 | sample.for.cv (dat, v, seed)
|
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 |
case and controls are sampled separately
A list of two vector of integers: train and test, which refer to the rows of dat
Youyi Fong youyifong@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.