Description Usage Arguments Value References Examples
Fit a linear regression model the group LASSO penalty.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | group.lasso(
X,
Y,
grps = NULL,
lambda = 1,
thresh = 1e-05,
maxit = 1e+05,
learning.rate = 0.01,
family = gaussian
)
## S4 method for signature 'matrix,numeric'
group.lasso(
X,
Y,
grps = NULL,
lambda = 1,
thresh = 1e-05,
maxit = 1e+05,
learning.rate = 0.01,
family = gaussian
)
## S4 method for signature 'matrix,matrix'
group.lasso(
X,
Y,
grps = NULL,
lambda = 1,
thresh = 1e-05,
maxit = 1e+05,
learning.rate = 0.01,
family = gaussian
)
|
X |
input matrix, of dimension ( |
Y |
output matrix, of dimension ( |
grps |
vector of integers or |
lambda |
|
thresh |
|
maxit |
maximum number of iterations for optimizer
( |
learning.rate |
step size for Adam optimizer ( |
family |
family of response, e.g., gaussian or binomial |
An object of class edgenet
beta |
the estimated ( |
alpha |
the estimated ( |
parameters |
regularization parameters |
lambda |
regularization parameter lambda) |
family |
a description of the error distribution and link function
to be used. Can be a |
call |
the call that produced the object |
Yuan, Ming and Lin, Yi (2006),
Model selection and estimation in regression with grouped variables.
Journal of the Royal Statistical Society: Series B
Meier, Lukas and Van De Geer, Sara and Bühlmann, Peter (2008),
The group lasso for logistic regression.
Journal of the Royal Statistical Society: Series B
1 2 3 4 5 6 7 | X <- matrix(rnorm(100 * 10), 100, 5)
b <- rnorm(5)
grps <- c(NA_integer_, 1L, 1L, 2L, 2L)
# estimate the parameters of a Gaussian model
Y <- X %*% b + rnorm(100)
fit <- group.lasso(X = X, Y = Y, grps = grps, family = gaussian, maxit = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.