plot.enet

0th

Percentile

Plot method for enet objects

Produce a plot of an enet fit. The default is a complete coefficient path.

Keywords
methods, hplot
Usage
plot.enet(x, xvar = c("fraction", "penalty", "L1norm", "step"),
use.color = FALSE, ...)
Arguments
x
enet object
xvar
The type of x variable against which to plot. xvar=fraction plots agains the fraction of the L1 norm of the coefficient vector (default). xvar=penalty plots against the 1-norm penalty parameter. xvar=L1norm plots aga
use.color
a colorful plot?
...
Additonal arguments for generic plot.
Value

  • NULL

References

Zou and Hastie (2004) "Regularization and Variable Selection via the Elastic Net" In press, Journal of the Royal Statistical Society, Series B.

Aliases
  • plot.enet
Examples
data(diabetes)
attach(diabetes)
object <- enet(x,y,lambda=1)
par(mfrow=c(2,2))
plot(object)
plot(object,xvar="step")
detach(diabetes)
Documentation reproduced from package elasticnet, version 1.02, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.