Description Usage Arguments Value Author(s) See Also Examples
EM algorithm for lasso penalty
1 2 3 |
X |
the matrix (of size n*p) of the covariates. |
y |
a vector of length n with the response. |
lambda |
a sequence of l1 penalty regularization term. If no sequence is provided, the function computes his own sequence. |
maxSteps |
Maximal number of steps for EM algorithm. |
intercept |
If TRUE, there is an intercept in the model. |
model |
"linear" or "logistic" |
burn |
Number of steps before thresholding some variables to zero. |
threshold |
Zero tolerance. Coefficients under this value are set to zero. |
eps |
Epsilon for the convergence of the EM algorithm. |
epsCG |
Epsilon for the convergence of the conjugate gradient. |
A list containing :
Vector containing the number of steps of the algorithm for every lambda
.
List of vector of the same length as lambda
. The i-th item contains the index of non-zero coefficients for the i-th lambda
value.
List of vector of the same length as lambda
. The i-th item contains the non-zero coefficients for the i-th lambda
value.
Vector containing the lambda
values.
Intercept.
Quentin Grimonprez, Serge Iovleff
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.