plot.sparsenet {sparsenet} | R Documentation |
plot coefficients from a "sparsenet" object
Description
Produces a series of coefficient profile plots of the coefficient paths for a
fitted "sparsenet"
object.
Usage
## S3 method for class 'sparsenet'
plot(x, xvar = c("rsq","lambda","norm"), which.gamma=NULL, label = FALSE,...)
Arguments
x |
fitted |
xvar |
What is on the X-axis. |
which.gamma |
sequence numbers of |
label |
If |
... |
Other graphical parameters to plot |
Details
A series of coefficient profile plots is produced, one for each
gamma
specified. Users should set up the appropriate layout.
Author(s)
Rahul Mazumder, Jerome Friedman and Trevor Hastie
Maintainer: Trevor Hastie <hastie@stanford.edu>
References
Mazumder, Rahul, Friedman, Jerome and Hastie, Trevor (2011) SparseNet: Coordinate Descent with Nonconvex Penalties. JASA, Vol 106(495), 1125-38, https://hastie.su.domains/public/Papers/Sparsenet/Mazumder-SparseNetCoordinateDescent-2011.pdf
See Also
glmnet
package, sparsenet
, cv.sparsenet
and
print
and plot
methods for both.
Examples
x=matrix(rnorm(100*20),100,20)
y=rnorm(100)
fit=sparsenet(x,y)
par(mfrow=c(3,3))
plot(fit)