CDA.cv | R Documentation |
Performs cross validation with correspondence discriminant analyses.
CDA.cv(X, Y, repet = 10, k = 7, ncomp = NULL, method = c("mahalanobis",
"euclidian"))
X |
a data frame of dependent variables (typically contingency or presence-absence table). |
Y |
factor giving the groups. |
repet |
an integer giving the number of times the whole procedure has to be repeated. |
k |
an integer giving the number of folds (can be re-set internally if needed). |
ncomp |
an integer giving the number of components to be used for prediction. If |
method |
criterion used to predict class membership. See |
The training sets are generated in respect to the relative proportions of the levels of Y
in the original data set (see splitf
).
repet |
number of times the whole procedure was repeated. |
k |
number of folds. |
ncomp |
number of components used. |
method |
criterion used to classify individuals of the test sets. |
groups |
levels of |
models.list |
list of of models generated ( |
NMC |
Classification error rates ( |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
discrimin.coa
require(ade4)
data(perthi02)
## Not run: CDA.cv(perthi02$tab,perthi02$cla)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.