Plot method for enet objects
Produce a plot of an enet fit. The default is a complete coefficient path.
## S3 method for class 'enet' plot(x, xvar = c("fraction", "penalty", "L1norm", "step"), use.color = FALSE, ...)
x |
enet object |
xvar |
The type of x variable against which to
plot. |
use.color |
a colorful plot? |
... |
Additonal arguments for generic plot. |
NULL
Hui Zou and Trevor Hastie
Zou and Hastie (2005) "Regularization and Variable Selection via the Elastic Net" Journal of the Royal Statistical Society, Series B,67,301-320.
data(diabetes) attach(diabetes) object <- enet(x,y,lambda=1) par(mfrow=c(2,2)) plot(object) plot(object,xvar="step") detach(diabetes)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.