Learn R Programming

predictoR (version 3.0.3)

e_coeff_landa: 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")

Value

echarts4r plot

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.

Author

Joseline Quiros <joseline.quiros@promidat.com>

Examples

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

Run the code above in your browser using DataLab