DIABLO.cv: Cross validation

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/DIABLO.cv.R

Description

Performs cross validation with DIABLO (block.plsda or block.splsda).

Usage

1
2
DIABLO.cv(x, method = c("mahalanobis.dist", "max.dist", "centroids.dist"),
  validation = c("Mfold", "loo"), k = 7, repet = 10, ...)

Arguments

x

an object of class "sgccda".

method

criterion used to predict class membership. See perf.

validation

a character giving the kind of (internal) validation to use. See perf.

k

an integer giving the number of folds (can be re-set internally if needed).

repet

an integer giving the number of times the whole procedure has to be repeated.

...

other arguments to pass to perf.

Details

The function uses the weighted predicted classification error rate (see perf).

Value

repet

number of times the whole procedure was repeated.

k

number of folds.

validation

kind of validation used.

ncomp

number of components used.

method

criterion used to classify individuals of the test sets.

NMC.mean

mean classification error rate (based on repet values).

NMC.se

standard error of the classification error rate (based on repet values).

Author(s)

Maxime Herv<e9> <[email protected]>

See Also

block.plsda, block.splsda, perf

Examples

1
2
3
4
5
6
7
8
## 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.cv(DIABLO)

## End(Not run)

RVAideMemoire documentation built on May 14, 2018, 5:07 p.m.