plot.ernet | R Documentation |
Produces a coefficient profile plot of the coefficient paths for a fitted
ernet object. This function is modified based on the plot
method in
the glmnet
package.
## S3 method for class 'ernet' plot(x, xvar = c("norm", "lambda"), color = FALSE, label = FALSE, ...)
x |
fitted |
xvar |
what is on the x-axis. |
color |
if |
label |
if |
... |
other graphical parameters to plot. |
A coefficient profile plot is produced.
Yuwen Gu and Hui Zou
Maintainer: Yuwen Gu <yuwen.gu@uconn.edu>
plot.cv.ernet
set.seed(1) n <- 100 p <- 400 x <- matrix(rnorm(n * p), n, p) y <- rnorm(n) tau <- 0.90 pf <- abs(rnorm(p)) pf2 <- abs(rnorm(p)) lambda2 <- 1 m1 <- ernet(y = y, x = x, tau = tau, eps = 1e-8, pf = pf, pf2 = pf2, standardize = FALSE, intercept = FALSE, lambda2 = lambda2) plot(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.