print.gglasso: print a gglasso object

Description Usage Arguments Details Value Author(s) References Examples

View source: R/tools.R

Description

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

Usage

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

Arguments

x

fitted gglasso object

digits

significant digits in printout

...

additional print arguments

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.

Value

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

Author(s)

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

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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)

emeryyi/gglasso documentation built on Feb. 23, 2020, 5:42 a.m.