Plot Feature Coefficients from a glmnet Model
Source:R/FeatureImportanceCoef.R
FeatureImportanceCoef.RdVisualizes feature coefficients from a penalized regression model fitted by glmnet.
Positive and negative coefficients are color-coded for better interpretation.
Arguments
- model
A fitted
glmnetmodel object that includes componentsmodelandlambda, such as from the output ofBuildPhenoModelAutoAlpha()orcv.glmnet().