Last chance! 50% off unlimited learning
Sale ends in
Performs a permutation significance test based on cross-validation with DIABLO (block.plsda
or block.splsda
).
DIABLO.test(x, method = c("mahalanobis.dist", "max.dist", "centroids.dist"),
validation = c("Mfold", "loo"), k = 7, nperm = 999, progress = TRUE, ...)
an object of class "sgccda"
.
criterion used to predict class membership. See 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).
number of permutations.
logical indicating if the progress bar should be displayed.
other arguments to pass to perf
.
a character string indicating the name of the test.
a character string giving the name of the data, plus additional information.
the value of the test statistics (classification error rate).
the number of permutations.
the p-value of the test.
The function uses the weighted predicted classification error rate (see perf
).
# NOT RUN {
require(mixOmics)
data(nutrimouse)
data <- list(gene=nutrimouse$gene,lipid=nutrimouse$lipid,Y=nutrimouse$diet)
DIABLO <- block.plsda(X=data,indY=3)
DIABLO.test(DIABLO)
# }
Run the code above in your browser using DataLab