Description Usage Arguments Details Value Source Examples
Random grouping function for index of train set’s row to divide into 2 groups.
1 |
training |
a train set that needs to be grouped by row. |
yname |
the name of result-column. |
levels |
results in result-column. |
Randomly split train set into two mutually exclusive parts. Classify the first part based on levels of yname.
The value returned is a list of 3 sets. The first set X1_0 and second set X1_1 are samples of two different levels in the first part of train set respectively. The third set X2 is the second part of train set.
For sample, based on
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
Ripley, B. D. (1987) Stochastic Simulation. Wiley.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.