e_coeff_landa: Coefficients and lambda

Description Usage Arguments Value Author(s) Examples

View source: R/mod_penalized_l_r_utils.R

Description

Plot the coefficients and selected lambda of a glmnet model.

Usage

1
e_coeff_landa(model, category, sel.lambda = NULL, label = "Log Lambda")

Arguments

model

a glmnet model.

category

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

1
2
modelo <- traineR::train.glmnet(Species~., iris)
e_coeff_landa(modelo, 'setosa', log(modelo$lambda[1]))

predictoR documentation built on Oct. 13, 2021, 1:06 a.m.