rlr_type: rlr_type

View source: R/mod_penalized_l_r_utils.R

rlr_typeR Documentation

rlr_type

Description

returns the name of the penalty according to the alpha.

Usage

rlr_type(alpha_rlr = 0)

Arguments

alpha_rlr

the penalty is defined as alpha=1 is the lasso penalty, and alpha=0 the ridge penalty.

See Also

glmnet

Examples

rlr_type(1)
rlr_type(0)


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