regressoR (version 1.1.8)

plot_coef_lambda: plot_coef_lambda

Description

generates the code to plot the penalized regression coefficients.

Usage

plot_coef_lambda(model.var = "modelo.rlr", lambda = NULL,
  cv.var = "cv.glm")

Arguments

model.var

the name of the variable that stores the resulting model.

lambda

a numerical value in case you don't want to use the optimal lambda.

cv.var

the variable that stores the optimal lambda.

Examples

Run this code
# NOT RUN {
library(glmnet)
x <- rlr_model('iris', 'Petal.Length')
exe(x)

x <- plot_coef_lambda('modelo.rlr')
exe(x)

# }

Run the code above in your browser using DataCamp Workspace