Learn R Programming

bst (version 0.3-2)

ex1data: Generating Three-class Data

Description

Randomly generate data for a three-class model. Modified code obtained from http://www.stat.osu.edu/~yklee/software.html.

Usage

ex1data(n.data)

Arguments

n.data
number of data samples.

Value

  • A list with n.data by 50 predictor matrix x, three-class response y and conditional probabilities p.

Details

The data is generated based on Example 1 described in Wang (2011).

References

Zhu Wang (2011), Multi-class HingeBoost: Method and Application to the Classification of Cancer Types Using Gene Expression Data. Manuscript.

Examples

Run this code
dat <- ex1data(200)
msvm(x=dat$x, y=dat$y)

Run the code above in your browser using DataLab