print.gglasso | R Documentation |
Print the nonzero group counts at each lambda along the gglasso path.
## S3 method for class 'gglasso'
print(x, digits = max(3, getOption("digits") - 3), ...)
x |
fitted |
digits |
significant digits in printout |
... |
additional print arguments |
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.
a two-column matrix, the first columns is the number of nonzero
group counts and the second column is Lambda
.
Yi Yang and Hui Zou
Maintainer: Yi Yang <yi.yang6@mcgill.ca>
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
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.