lasso_max_lambda: Maximum lambda in lasso model

Description Usage Arguments Value

View source: R/stats_lasso.R

Description

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

Usage

1
2
3
4
5
lasso_max_lambda_lars(X, y)

lasso_max_lambda_glmnet(X, y, nlambda = NULL)

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

Arguments

X

matrix of predictors

y

response vector

Value

vector of maximum lambda's


knockoff documentation built on May 19, 2017, 8:41 p.m.

Search within the knockoff package
Search all R packages, documentation and source code