print.glmnet.cr: Print a glmnet.cr Object

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Print a summary of the glmnet.cr path at each step along the path.

Usage

1
2
## S3 method for class 'glmnet.cr'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

fitted glmnet.cr object

digits

significant digits in printout

...

additional print arguments

Details

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).

Value

The matrix above is silently returned

Note

This function is essentially the same as print.glmnet from the glmnet package by but was edited to operate on a returned glmnet.cr object.

Author(s)

Jerome Friedman, Trevor Hastie and Rob Tibshirani

References

Friedman, J., Hastie, T. and Tibshirani, R. (2008) Regularization Paths for Generalized Linear Models via Coordinate Descent

See Also

See Also as glmnet.cr

Examples

1
2
3
4
5
data(diabetes)
x <- diabetes[, 2:dim(diabetes)[2]]
y <- diabetes$y
glmnet.fit <- glmnet.cr(x, y)
print(glmnet.fit)


Search within the glmnetcr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.