Extract Coefficient Information from Models
# S3 method for glmnet
extract.coef(model, lambda = stats::median(model$lambda), ...)
Model object from which to extract information.
Value of penalty parameter
Further arguments
A data.frame
containing the coefficient, the standard
error and the variable name.
Gets the coefficient values and variable names from a model. Since glmnet does not have standard errors, those will just be NA.