buildLambda: Auxiliary function to generate suitable lambda parameters

View source: R/build_lambda.R

buildLambdaR Documentation

Auxiliary function to generate suitable lambda parameters

Description

Auxiliary function to generate suitable lambda parameters

Usage

buildLambda(
  lambdaLargest = NULL,
  xdata = NULL,
  ydata = NULL,
  family = NULL,
  ordersOfMagnitudeSmaller = 3,
  lambdaPerOrderMagnitude = 150,
  lambda.largest = deprecated(),
  orders.of.magnitude.smaller = deprecated(),
  lambda.per.order.magnitude = deprecated()
)

Arguments

lambdaLargest

numeric value for largest number of lambda to consider (usually with a target of 1 selected variable)

xdata

X parameter for glmnet function

ydata

Y parameter for glmnet function

family

family parameter to glmnet function

ordersOfMagnitudeSmaller

minimum value for lambda (lambda.largest / 10^orders.of.magnitude.smaller)

lambdaPerOrderMagnitude

how many lambdas to create for each order of magnitude

lambda.largest

[Deprecated]

orders.of.magnitude.smaller

[Deprecated]

lambda.per.order.magnitude

[Deprecated]

Value

a numeric vector with suitable lambdas

Examples

buildLambda(5.4)

sysbiomed/glmSparseNet documentation built on Feb. 17, 2024, 1:38 p.m.