e_coeff_lambda {predictoR} | R 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]))
[Package predictoR version 4.1.1 Index]