coef_lambda: coef_lambda

View source: R/mod_penalized_l_r_utils.R

coef_lambdaR Documentation

coef_lambda

Description

get penalized regression coefficients.

Usage

coef_lambda(data, variable.pred, model, log.lambda = NULL)

Arguments

data

dataframe

variable.pred

the name of the variable to be predicted.

model

a penalized regression model(cv.glmnet).

log.lambda

numerical. Logarithm of lambda in case you don't want to use the optimal lambda.


regressoR documentation built on July 9, 2023, 5:26 p.m.