Description Usage Arguments Details Value Author(s) References See Also Examples
It performs the lars algorithm for solving lasso problem. It is a linear regression problem with a l1-penalty on the estimated coefficient.
1 2 |
X |
the matrix (of size n*p) of the covariates. |
y |
a vector of length n with the response. |
maxSteps |
Maximal number of steps for lars algorithm. |
intercept |
If TRUE, add an intercept to the model. |
eps |
Tolerance of the algorithm. |
The l1 penalty performs variable selection via shrinkage of the estimated coefficient. It depends on a penalty parameter called lambda controlling the amount of regularization. The objective function of lasso is :
||y-Xβ||_2 + λ||β||_1
An object of type LarsPath
.
Quentin Grimonprez
Efron, Hastie, Johnstone and Tibshirani (2003) "Least Angle Regression" (with discussion) Annals of Statistics
LarsPath
HDcvlars
listToMatrix
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.