glmnet_coefs | R Documentation |
Convenience function for retrieving coefficients from a glmnet::cv.glmnet model at a specified lambda. Sparsity is removed and non-intercept coefficients are ranked by absolute value.
glmnet_coefs(fit, s, ...)
fit |
A glmnet::cv.glmnet fitted model object. |
s |
Value of lambda. See glmnet::coef.glmnet and glmnet::predict.cv.glmnet |
... |
Other arguments passed to glmnet::coef.glmnet |
Vector or list of coefficients ordered with the intercept first, followed by highest absolute value to lowest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.