extract.coef.glmnet: extract.coef.glmnet

View source: R/extractCoef.r

extract.coef.glmnetR Documentation

extract.coef.glmnet

Description

Extract Coefficient Information from Models

Usage

## S3 method for class 'glmnet'
extract.coef(model, lambda = stats::median(model$lambda), ...)

Arguments

model

Model object from which to extract information.

lambda

Value of penalty parameter

...

Further arguments

Details

Gets the coefficient values and variable names from a model. Since glmnet does not have standard errors, those will just be NA.

Value

A data.frame containing the coefficient, the standard error and the variable name.

Author(s)

Jared P. Lander


coefplot documentation built on March 18, 2022, 7:58 p.m.