larmarange / broom.helpers

A set of functions to facilitate manipulation of tibbles produced by broom
https://larmarange.github.io/broom.helpers/
GNU General Public License v3.0
21 stars 7 forks source link

Improving `glmnet` output #162

Open larmarange opened 2 years ago

larmarange commented 2 years ago

glmnet() only accepts a matrix of continuous variables. It does not provide a model.frame() or a model.matrix() method.

However, should we consider that all variables are simply continuous?

larmarange commented 2 years ago

CC @ddsjoberg

larmarange commented 2 years ago

The result contains nobs (the number of observations)

A class is also added on the model indicate the type ("elnet", "lognet", "multnet", "fishnet" (poisson), "coxnet" or "mrelnet" for the various types of models).