glmnet_to_table: Summarise coefficients from glmnet in a table

glmnet_to_tableR Documentation

Summarise coefficients from glmnet in a table

Description

Returns a tibble of coefficients for glmnet model fit with parameter s. Only coefficients with absolute value greater than min_coef are included.

Usage

glmnet_to_table(fit, ..., min_coef = 0.0000000001)

Arguments

fit

A fitted glmnet model.

...

Arguments passed to coef(). For glmnet, most commonly used will be s (see predict.cv.glmnet()).

min_coef

Coefficients with smaller absolute value than this are excluded from the table.

Details

This is a simplified version of jemodel::glmnet_to_table() kept here to provide some backwards compatibility. Longer term it may be removed from this package.


jedwards24/edwards documentation built on Sept. 2, 2023, 8:16 a.m.