Generate lambda sequence.
setup_lambda.Rd
Generate lambda sequence.
Arguments
- X
Input matrix, of dimension
nobs
xnvars
; each row is an observation vector.- y
Response variable, of length
nobs
. Forfamily="gaussian"
, it should be quantitative; forfamily="binomial"
, it should be either a factor with two levels or a binary vector.- weights
Observation weights.
- lambda.min.ratio
The smallest value for
lambda
, as a fraction oflambda.max
, the smallest value for which all coefficients are zero. The default depends on the sample sizenobs
relative to the number of variablesnvars
.- nlambda
The number of
lambda
values.