Description Usage Arguments Details Value Author(s) See Also Examples
When performing cross-validation on a dataset, it often becomes necessary to split the data into training and test sets that are balanced for a certain binary outcome. This function implements such a balanced split.
1 | balancedSplit(fac, size)
|
fac |
A factor that should be balnced between the two subsets. |
size |
A number between 0 and 1 indicating the fraction of the dataset to be used for training. |
Stuff should go here
Returns a logical vector with length equal to the length of
fac
. TRUE values designate samples selected for the training
set.
Kevin R. Coombes <krc@silicovore.com>
CrossVal
, CrossVal-class
, CrossVal-package
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.