Description Usage Arguments Value
Run the constrained lasso procedure.
1 2 | glmnet.constr(x, y, family = c("gaussian", "binomial"), alpha = 1,
nlambda = 100, lambda.min.ratio = 0.01, lambda = NULL, ...)
|
x |
The matrix of features. |
y |
The response value. In the real-valued repsonse case, y should be centered. |
family |
The model family. Default is "gaussian" for standard lasso. "binomial" is available for lasso logistic regression. |
alpha |
The elastic net parameter. Default is 1 (the standard lasso). |
nlambda |
Numer of lambda values to fit |
lambda.min.ratio |
Smallest value for lambda as a fraction of lambda.max |
lambda |
Optional grid of lambda values |
... |
Additional arguments to internally pass to the "glmnet" function. |
beta The resulting coefficient vectors in matrix form.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.