Description Usage Arguments Value Examples
View source: R/data_process_tools.R
this function creates stratified folds for cross validation.
1 |
dat |
A data.frame. |
k |
k is an integer specifying the number of folds. |
occur_time |
time variable for creating OOT folds. Default is NULL. |
seed |
A seed. Default is 46. |
a list of indices
1 2 | sub = cv_split(UCICreditCard, k = 30)[[1]]
dat = UCICreditCard[sub,]
|
Package 'creditmodel' version 1.2.7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.