Description Usage Arguments Value Examples
elnet_coord takes user-specified alpha and lambda values and fits an elastic net model using those parameters.
1 | elnet_coord(x, y, alpha, lambda = 0.1, tol = 1e-04)
|
x |
Predictor matrix x, with n rows and p columns |
y |
Response vector y, with n elements |
alpha |
Elastic net alpha parameter. elastic net simplifies to Ridge regression under alpha = 0, and to Lasso regression under alpha = 1 |
lambda |
Lasso tuning parameter |
tol |
Tolerance for convergence of betas. Algorithm will complete when the maximum change in beta values is smaller than the tol value |
Column vector of p Beta values from the elastic net algorithm.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.