extract.coef.glmnet | R Documentation |
Extract Coefficient Information from Models
## S3 method for class 'glmnet' extract.coef(model, lambda = stats::median(model$lambda), ...)
model |
Model object from which to extract information. |
lambda |
Value of penalty parameter |
... |
Further arguments |
Gets the coefficient values and variable names from a model. Since glmnet does not have standard errors, those will just be NA.
A data.frame
containing the coefficient, the standard
error and the variable name.
Jared P. Lander
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.