Description Usage Arguments Value
calculate lasso regression coefficients using the optimal tuning parameter from the glmnet package.
1 |
X |
nxp data matrix. Each row corresponds to a single observation and each column contains n observations of a single feature/variable. |
Y |
nxr response matrix. Each row corresponds to a single response and each column contains n response of a single feature/response. |
lam |
tuning parameter |
intercept |
option to include intercept, defaults to FALSE |
standardize |
option to standardize the data, defaults to FALSE |
... |
other options to pass to glmnet |
betas, lam
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.