View source: R/mod_model_regp_utils.R
e_coeff_lambda | R Documentation |
Plot the coefficients and selected lambda of a glmnet model.
e_coeff_lambda(model, cat, sel.lambda = NULL, label = "Log Lambda")
model |
a glmnet model. |
cat |
a category of the variable to be predicted. |
sel.lambda |
the selected lambda. |
label |
a character specifying the title to use on selected lambda tooltip. |
echarts4r plot
Joseline Quiros <joseline.quiros@promidat.com>
x <- model.matrix(Species ~ ., iris)[, -1]
y <- iris$Species
modelo <- glmnet::cv.glmnet(x, y, standardize = TRUE, alpha = 1, family = "multinomial")
e_coeff_lambda(modelo, 'setosa', log(modelo$lambda[1]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.