Description Usage Arguments Value Author(s) References
Compute linear elastic net using coordinate descent.
1 2 3 4 5 6 7 8 9 10 |
X |
A numeric data matrix. |
y |
Response vector. |
lambda |
The penalty term. |
alpha |
Value from 0 and 1; balance between l1/l2 penalty. |
b |
Current value of the regression vector. |
tol |
Numeric tolerance parameter. |
maxit |
Integer maximum number of iterations. |
W |
Vector of sample weights. |
Regression vector beta of length ncol(X).
Taylor Arnold, Michael Kane, Bryan Lewis.
Taylor Arnold, Michael Kane, and Bryan Lewis. A Computational Approach to Statistical Learning. Chapman & Hall/CRC Texts in Statistical Science, 2019.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.