rcc.estim.regul(X, Y, grid1 = NULL, grid2 = NULL,
validation = c("loo", "Mfold"),
folds, M = 10, plt = TRUE, ...)NAs are allowed.NAs are allowed.lambda1 and lambda2
at which cross-validation score should be computed. Defaults to
lambda1 = lambda2 = seq(from=0.001, to=1, length=5)."loo" (leave-one-out) or "Mfolds" (M-folds). See Details.split)
containing the indices for the validation sample (see Details).validation="Mfold". Defaults to
M=10.imgCV function.grid1 and grid2.validation="Mfolds", M-fold cross-validation is performed by calling
Mfold. When folds is given, the elements of folds should be integer vectors
specifying the indices of the validation sample and the argument M is
ignored. Otherwise, the folds are generated. The number of cross-validation
folds is specified with the argument M.
If validation="loo",
leave-one-out cross-validation is performed by calling the
loo function. In this case the arguments folds and M are ignored.loo, Mfold, image.estim.regul.data(nutrimouse)
X <- nutrimouse$lipid
Y <- nutrimouse$gene
## this can take some seconds
estim.regul(X, Y, validation = "Mfold")Run the code above in your browser using DataLab