glmnet - variable importance?

前端 未结 3 1611
旧巷少年郎
旧巷少年郎 2021-02-09 15:35

I´m using the glmnet package to perform a LASSO regression. Is there a way to get the importance of the individual variables that were selected? I thought about ranking the coef

3条回答
  •  天命终不由人
    2021-02-09 16:16

    Before you compare the magnitudes of the coefficients you should normalize them by multiplying each coefficent by the standard deviation of the corresponding predictor. This answer has more detail and useful links: https://stats.stackexchange.com/a/211396/34615

提交回复
热议问题