Description Usage Arguments Value
Fits regularization paths for linear constraints group-lasso penalized learning problems at a sequence of regularization parameters lambda.
1 2 3 4 5 6 | cglasso(y, Z, Zc = NULL, k, W = rep(1, times = p), intercept = TRUE,
A = kronecker(matrix(1, ncol = p), diag(k)), b = rep(0, times = k),
u = 1, mu_ratio = 1.01, lam = NULL, nlam = 100,
lambda.factor = ifelse(n < p1, 0.05, 0.001), dfmax = p,
pfmax = min(dfmax * 1.5, p), tol = 0, outer_maxiter = 3e+08,
outer_eps = 1e-08, inner_maxiter = 1e+06, inner_eps = 1e-08)
|
y |
a vector of response variable with length n. |
Z |
a matrix, of dimension n*p1, for predictors to be imposed with group lasso penalty. |
Zc |
a design matrix for those group-lasso-penalty free predictors. Can be missing. Default value is NULL. |
k |
k is the size for each group in Z. All groups are with the same size. Number of groups is p = p1 / k . |
W |
a vector in length of p (the total number of groups), matrix with dimension
Default value is rep(1, times = p). |
intercept |
whether to include intercept. Default is TRUE. |
A, b |
linear equality constraints Aβ_p1 = b, where b is a vector with length k,
and A is a k*p1 matrix. Default values, b is a vector of 0's and
|
u |
|
mu_ratio |
|
lam |
a user supplied lambda sequence. Typically, by leaving this option unspecified users can have the
program compute its own |
nlam |
the length of |
lambda.factor |
the factor for getting the minimal lambda in |
dfmax |
limit the maximum number of groups in the model. Useful for very large p, if a partial path is desired - default is p. |
pfmax |
limit the maximum number of groups ever to be nonzero. For example once a group enters the
model along the path, no matter how many times it exits or re-enters model through the path,
it will be counted only once. Default is |
tol |
tolerance for vectors beta'ss to be considered as none zero's. For example, coefficient
β_j for group j, if max(abs(β_j)) < |
outer_maxiter, outer_eps |
|
inner_maxiter, inner_eps |
|
A list
lam |
the actual sequence of lambda values used |
df |
the number of nonzero groups in estimated coefficients for |
path |
a matrix of coefficients |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.