svmpath (version 0.970)

summary.svmpath: produce a summary of an svmpath object

Description

printing an svmpath object can produce a lot of lines. The summary methods gives a more concise description by picking out a subset of the steps

Usage

# S3 method for svmpath
summary(object, nsteps = 5, digits = 6, ...)

Arguments

object

the svmpath object

nsteps

usually omitted, but can be changed to get longer summaries

digits

number of significant digits

...

additional arguments to the generic summary function

Value

returns a dataframe with the steps, value of lambda, training error, size of elbow, number of support points, and the sum of the overlaps

Details

Uses the pretty function to extract the approximately the desired number of steps. Always includes the first and last step.

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.

See Also

coef.svmpath, svmpath, predict.svmpath, print.svmpath

Examples

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

Run the code above in your browser using DataCamp Workspace