numeric matrix (n * p), containing the X coordinates.
Y
numeric matrix (n * p), containing the X coordinates.
grid1
vector defining the values of lambda1 to be tested. If
NULL, the vector is defined as seq(0.001, 1, length = 5)
grid2
vector defining the values of lambda2 to be tested. If
NULL, the vector is defined as seq(0.001, 1, length = 5)
plt
logical argument indicating whether an image should be
plotted by calling the img.estim.regul() function.
Value
A 3-vector containing the 2 values of the parameters of regularization
on which the leave-one-out criterion reached its maximum; and the
maximal value reached on the grid.