print.SGL {SGL}R Documentation

prints a summary of the SGL solution path

Description

Prints a short summary of the SGL solution path.

Usage

## S3 method for class 'SGL'
print(x, digits, ...)

Arguments

x

fitted "SGL" object

digits

significant digits in printout

...

additional print arguments

Details

The time of regression run, followed by a 2-column matrix with rows lambdas and num.nonzero. lambdas gives the lambda-value of each fit. num.nonzero gives the the number of non-zero coefficients.

Author(s)

Noah Simon, Jerome Friedman, Trevor Hastie, and Rob Tibshirani
Maintainer: Noah Simon <nrsimon@uw.edu>

References

Simon, N., Friedman, J., Hastie T., and Tibshirani, R. (2011) A Sparse-Group Lasso,
http://faculty.washington.edu/nrsimon/SGLpaper.pdf

See Also

SGL and cv.SGL.

Examples

n = 50; p = 100; size.groups = 10
index <- ceiling(1:p / size.groups)
X = matrix(rnorm(n * p), ncol = p, nrow = n)
beta = (-2:2)
y = X[,1:5] %*% beta + 0.1*rnorm(n)
data = list(x = X, y = y)
fit = SGL(data, index, type = "linear")
print(fit)

[Package SGL version 1.3 Index]