print.ernet {SALES} | R Documentation |
Print an ernet object
Description
Print a summary of the ernet path at each step along the path.
Usage
## S3 method for class 'ernet'
print(x, digits = max(3, getOption("digits") - 3), ...)
Arguments
x |
fitted |
digits |
significant digits in the output. |
... |
additional print arguments. |
Details
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.
Value
a two-column matrix, the first columns is the number of nonzero
coefficients and the second column is Lambda
.
Author(s)
Yuwen Gu and Hui Zou
Maintainer: Yuwen Gu <yuwen.gu@uconn.edu>
Examples
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)
[Package SALES version 1.0.2 Index]