print.ernet | R Documentation |
Print a summary of the ernet path at each step along the path.
## S3 method for class 'ernet' print(x, digits = max(3, getOption("digits") - 3), ...)
x |
fitted |
digits |
significant digits in the output. |
... |
additional print arguments. |
The call that produced the ernet
object is printed,
followed by a two-column matrix with columns Df
and Lambda
.
The Df
column is the number of nonzero coefficients.
a two-column matrix, the first columns is the number of nonzero
coefficients and the second column is Lambda
.
Yuwen Gu and Hui Zou
Maintainer: Yuwen Gu <yuwen.gu@uconn.edu>
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) print(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.