lasso | R Documentation |
Minimize .5|| Y - XB ||^2_2 + gamma |B|_1
lasso(X, Y, B, lambda, niter, fixd = -1L)
X |
NxP matrix of covariates. |
Y |
N-vector of response. |
B |
P-vector of coefficents. |
lambda |
P-vector L1 regulation coeffs. |
niter |
Integer, number of lasso iterations to perform. |
fixd |
Integer, passed from R to indicate the column of the data during the inspre loop. Set to current column index to fix the diagonal of the result to 1. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.