e_coeff_landa: Coefficients and lambda

View source: R/mod_penalized_l_r_utils.R

e_coeff_landaR Documentation

Coefficients and lambda

Description

Plot the coefficients and selected lambda of a glmnet model.

Usage

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

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


predictoR documentation built on April 30, 2022, 1:05 a.m.