Generate lambda sequence.
setup_lambda.RdGenerate lambda sequence.
Arguments
- X
Input matrix, of dimension
nobsxnvars; 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 sizenobsrelative to the number of variablesnvars.- nlambda
The number of
lambdavalues.