Generate lambda sequence.
setup_lambda(X, y, weights, lambda.min.ratio, nlambda)
Input matrix, of dimension nobs
x nvars
;
each row is an observation vector.
Response variable, of length nobs
. For family="gaussian"
,
it should be quantitative; for family="binomial"
, it should be either
a factor with two levels or a binary vector.
Observation weights.
The smallest value for lambda
, as a fraction of
lambda.max
, the smallest value for which all coefficients are zero.
The default depends on the sample size nobs
relative to the number
of variables nvars
.
The number of lambda
values.