Learn R Programming

gglasso (version 1.5.1)

print.gglasso: print a gglasso object

Description

Print the nonzero group counts at each lambda along the gglasso path.

Usage

# S3 method for gglasso
print(x, digits = max(3, getOption("digits") - 3), ...)

Value

a two-column matrix, the first columns is the number of nonzero group counts and the second column is Lambda.

Arguments

x

fitted gglasso object

digits

significant digits in printout

...

additional print arguments

Author

Yi Yang and Hui Zou
Maintainer: Yi Yang <yi.yang6@mcgill.ca>

Details

Print the information about the nonzero group counts at each lambda step in the gglasso object. The result is a two-column matrix with columns Df and Lambda. The Df column is the number of the groups that have nonzero within-group coefficients, the Lambda column is the the corresponding lambda.

References

Yang, Y. and Zou, H. (2015), ``A Fast Unified Algorithm for Computing Group-Lasso Penalized Learning Problems,'' Statistics and Computing. 25(6), 1129-1141.
BugReport: https://github.com/emeryyi/gglasso

Examples

Run this code

# load gglasso library
library(gglasso)

# load data set
data(colon)

# define group index
group <- rep(1:20,each=5)

# fit group lasso
m1 <- gglasso(x=colon$x,y=colon$y,group=group,loss="logit")

# print out results
print(m1)

Run the code above in your browser using DataLab