plot.cv.sparsenet: plot the cross-validation curves produced by cv.sparsenet

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/plot.cv.sparsenet.R

Description

Plots the cross-validation curves for each value of gamma in one figure, as a function of the lambda values used.

Usage

1
2
## S3 method for class 'cv.sparsenet'
plot(x,  ...)

Arguments

x

fitted "cv.sparsenet" object

...

Other graphical parameters to plot

Details

A plot is produced, and nothing is returned.

Author(s)

Rahul Mazumder, Jerome Friedman and Trevor Hastie

Maintainer: Trevor Hastie <[email protected]>

References

http://www.stanford.edu/~hastie/Papers/Sparsenet/jasa_MFH_final.pdf

See Also

glmnet package, sparsenet, cv.sparsenet and print and plot methods for both.

Examples

1
2
3
4
x=matrix(rnorm(100*20),100,20)
y=rnorm(100)
fitcv=cv.sparsenet(x,y)
plot(fitcv)

sparsenet documentation built on May 29, 2017, 2:19 p.m.