get_lambda: Estimate an appropriate value for the ridge penalty (lambda).

View source: R/cv.R

get_lambdaR Documentation

Estimate an appropriate value for the ridge penalty (lambda).

Description

Estimate an appropriate value for the ridge penalty (lambda).

Usage

get_lambda(Y, X, scale.X = FALSE, sample.X = sample.X, sample.Y = sample.Y)

Arguments

Y

A numeric matrix of response variables.

X

A numeric matrix of explanatory variables.

scale.X

Logical indicating if X is scaled. Default is FALSE.

sample.X

A number of variables sampled from X for the lamdba range estimate. Default is 1000.

sample.Y

A number of variables sampled from Y for the lamdba range estimate. Default is 1000.

Value

A numeric vector of the range of lambda values.


rrda documentation built on June 8, 2025, 12:09 p.m.

Related to get_lambda in rrda...