lda
), Partial Least Squares - Discriminant Analysis (from plsda
) and Correspondence Discriminant Analysis (from discrimin.coa
) are handled. Two methods are implemented for cross-validation: leave-one-out and M-fold.DA.valid(model, method = c("Mfold", "loo"), crit.lda = c("plug-in", "predictive",
"debiased"), crit.plsda = c("mahalanobis.dist", "centroids.dist", "max.dist"),
crit.cda = c("mahalanobis", "euclidian"), M = 10, nrep = 20)
"Mfold"
or "loo"
(see below). Default is "Mfold"
."plug-in"
(the default) the usual unbiased parameter estimates are used and assumed to be correct. With "debiased"
an unbiased estimator of the"mahalanobis.dist"
(default), "centroids.dist"
or "max.dist"
."mahalanobis"
(default) or "euclidian"
.model
(they are not evaluated from the training dataset itself).lda
, predict.lda
, plsda
, perf
, discrimin.coa
, predict.coadisc
# With a LDA
require(MASS)
data(iris)
model.LDA <- lda(iris[,1:4],iris$Species)
DA.valid(model.LDA)
Run the code above in your browser using DataLab