Randomly generate data for a three-class model.
number of data samples.
number of predictors.
The data is generated based on Example 1 described in Wang (2012).
A list with n.data by p predictor matrix
x, three-class response
y and conditional probabilities.
Zhu Wang (2012), Multi-class HingeBoost: Method and Application to the Classification of Cancer Types Using Gene Expression Data. Methods of Information in Medicine, 51(2), 162–7.
## Not run: dat <- ex1data(100, p=5) mhingebst(x=dat$x, y=dat$y) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.