Extracting coefficient variable names from glmnet into a data.frame

后端 未结 8 1984
小鲜肉
小鲜肉 2020-12-05 00:09

I would like to extract the glmnet generated model coefficients and create a SQL query from them. The function coef(cv.glmnet.fit) yields a \'dgCMa

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 00:46

    Check broom package. It has tidy function that converts output of different R objects (including glmnet) into data.frames.

提交回复
热议问题