powered by
Performs cross validation with DIABLO (block.plsda or block.splsda).
block.plsda
block.splsda
DIABLO.cv(x, method = c("mahalanobis.dist", "max.dist", "centroids.dist"), validation = c("Mfold", "loo"), k = 7, repet = 10, ...)
number of times the whole procedure was repeated.
number of folds.
kind of validation used.
number of components used.
criterion used to classify individuals of the test sets.
mean classification error rate (based on repet values).
repet
standard error of the classification error rate (based on repet values).
an object of class "sgccda".
"sgccda"
criterion used to predict class membership. See perf.
perf
a character giving the kind of (internal) validation to use. See perf.
an integer giving the number of folds (can be re-set internally if needed).
an integer giving the number of times the whole procedure has to be repeated.
other arguments to pass to perf.
Maxime HERVE <mx.herve@gmail.com>
The function uses the weighted predicted classification error rate (see perf).
block.plsda, block.splsda, perf
if (FALSE) { require(mixOmics) data(nutrimouse) data <- list(gene=nutrimouse$gene,lipid=nutrimouse$lipid,Y=nutrimouse$diet) DIABLO <- block.plsda(X=data,indY=3) DIABLO.cv(DIABLO) }
Run the code above in your browser using DataLab