Description Usage Arguments Details Value Author(s) References See Also Examples
Generates a random mixture for binary class prediction with output variable green and red factors and with two inputs x1 and x2. Similar to the mixture dataset in ESL.
1 | rmix(n = 100)
|
n |
Sample size, should be even number, n/2 green and n/2 red. |
The optimal Bayes error rate is 20.76
dataframe with columns x1, x2, y
A. I. McLeod
ESL. Hastie, Tibshirani and Friedman (2009). The Elements of Statistical Learning. 2nd Ed. Springer.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.