lasso_max_lambda: Maximum lambda in lasso model

View source: R/stats_glmnet.R

lasso_max_lambdaR Documentation

Maximum lambda in lasso model

Description

Computes the earliest (largest) lambda's for which predictors enter the lasso model.

Usage

lasso_max_lambda(X, y, method = c("glmnet", "lars"), ...)

Arguments

X

matrix of predictors

y

response vector

method

either 'glmnet' or 'lars'

Value

vector of maximum lambda's


knockoff documentation built on Aug. 15, 2022, 9:06 a.m.