estim.regul | R Documentation |
Calulate the leave-one-out criterion on a 2D-grid to determine optimal values for the parameters of regularization.
estim.regul(X, Y, grid1 = NULL, grid2 = NULL, plt = TRUE)
X |
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 |
grid2 |
vector defining the values of lambda2 to be tested. If
NULL, the vector is defined as |
plt |
logical argument indicating whether an image should be
plotted by calling the |
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.
Sébastien Déjean, Ignacio González
loo
#data(nutrimouse)
#X=as.matrix(nutrimouse$gene)
#Y=as.matrix(nutrimouse$lipid)
#res.regul = estim.regul(X,Y,c(0.01,0.5),c(0.1,0.2,0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.