Description Usage Arguments Value Examples
Computes the proximal operator of the group lasso penalty:
h(x) = ∑_{g group} w_g ||x[g]||_2 .
Note that the groups should not overlap.
1  | 
x | 
 The input vector  | 
t | 
 The step size  | 
opts | 
 List of parameters, which can include: 
  | 
The proximal operator of the group lasso, which is a soft-thresholing
operator applied to the restriction of the x to each group.
1 2 3 4  | x <- rnorm(5)
# When groups are all the singletons we recover the L1 (lasso) penalty
prox.grouplasso(f,1,list(groups=as.list(seq(length(f)))))
prox.elasticnet(f,1,list(lambda=1,alpha=1))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.