View source: R/print.glmnetcr.R
print.glmnetcr | R Documentation |
Print a summary of the glmnetcr
path at each step along the path.
## S3 method for class 'glmnetcr'
print(x, digits = max(3, getOption("digits") - 3), ...)
x |
fitted |
digits |
significant digits in printout |
... |
additional print arguments |
The call that produced the object x
is printed, followed by a three-column
matrix
with columns Df
, %dev
and Lambda
. The Df
column is the number of nonzero coefficients (Df is a reasonable
name only for lasso fits). %dev
is the percent deviance
explained (relative to the null deviance).
The matrix above is silently returned
This function is essentially the same as print.glmnet
from the glmnet package by but was edited to operate on a returned glmnetcr
object.
Jerome Friedman, Trevor Hastie and Rob Tibshirani
Friedman, J., Hastie, T. and Tibshirani, R. (2008) Regularization Paths for Generalized Linear Models via Coordinate Descent
See Also as glmnetcr
data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
glmnet.fit <- glmnetcr(x, y)
print(glmnet.fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.