Get lambda.min and lambda.1se values and indices.
getOptLambda(lambda, cvm, cvsd, type.measure)The values of lambda used in the fits.
The mean cross-validated error: a vector of length `length(lambda)`.
Estimate of standard error of `cvm`.
Loss function used for CV.
A list with the following elements:
Value of `lambda` that gives minimum `cvm`.
Largest value of `lambda` such that the error is within 1 standard error of the minimum.
A one-column matrix with the indices of `lambda.min` and `lambda.1se` in the sequence of coefficients, fits etc.