Description Usage Arguments Value
create (repeated) cross validation folds
1 2 3 4 5 | createCVFolds(x, y, nfold = 5, repeats = 1, stratify = FALSE,
seed = NULL)
createBootstrap(x, y, n, repeats = 25, replace = TRUE, stratify = FALSE,
seed = NULL)
|
x |
Design matrix |
y |
Response vector |
nfold |
Number of folds |
repeats |
Number of repeats |
stratify |
Should folds be stratified on response classes or censoring indicators (if survival) |
seed |
Seed to set before sampling |
n |
Bootstrapped sample size (if integer) or proportional |
replace |
If to sample with replacement |
A list of repeated cross validation training samples (as row numbers of x) or a list of Bootstrap samples (as row numbers of x as well).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.