Learn R Programming

svmpath (version 0.970)

balanced.overlap: simple examples for svmpath

Description

Datasets for illustrating the svmpath function, that can be plotted while its running

Usage

data(svmpath)

Arguments

Format

In each case a list with a component x (t column matrix) and a component y (vector of +1/-1 values) "Balanced" refers to whether the number of +1s is the same as the -1s. "Overlap" indicates whether the classes are linearly separable. mixture.data is a balanced dataset with 100 observations in each class. The others are smaller with between 10-12 obs total.

References

The paper http://www-stat.stanford.edu/~hastie/Papers/svmpath.pdf, as well as the talk http://www-stat.stanford.edu/~hastie/TALKS/svmpathtalk.pdf.

Examples

Run this code
# NOT RUN {
data(svmpath)
attach(balanced.overlap)
svmpath(x,y,trace=TRUE,plot=TRUE)
detach(2)
# }

Run the code above in your browser using DataLab