e_coeff_lambda {regressoR}R Documentation

Coefficients and lambda

Description

Plot the coefficients and selected lambda of a glmnet model.

Usage

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

Arguments

model

a glmnet model.

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(Sepal.Length ~ ., iris)[, -1]
y <- iris$Sepal.Length
modelo <- glmnet::cv.glmnet(x, y, standardize = TRUE, alpha = 1, family = "gaussian")
e_coeff_lambda(modelo, log(modelo$lambda[1]))


[Package regressoR version 4.0.3 Index]