e_coeff_lambda: Coefficients and lambda

View source: R/mod_model_regp_utils.R

e_coeff_lambdaR Documentation

Coefficients and lambda

Description

Plot the coefficients and selected lambda of a glmnet model.

Usage

e_coeff_lambda(model, cat, sel.lambda = NULL, label = "Log Lambda")

Arguments

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.

Value

echarts4r plot

Author(s)

Joseline Quiros <joseline.quiros@promidat.com>

Examples

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]))


predictoR documentation built on Nov. 1, 2024, 1:08 a.m.