Train Test split
1 | train_test(df, y, p = 0.75, groups = min(5, length(y)), seed = NULL)
|
df |
dataframe |
y |
outcome variable |
p |
proportion between train and test sets |
groups |
numbre of groups to be used in stratified sample |
seed |
seed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.