Predicts response based on CDA (correspondence discriminant analysis) submodels generated by cross validation. The predicted class is given with its probability (computed from the values predicted by all submodels).
# S3 method for CDA.cv
predict(object, newdata, type = c("max", "all"), method = c("mahalanobis",
"euclidian"), ...)
object of class inheriting from "CDA.cv"
.
vector, matrix or data frame giving new individuals (one row per individual).
should the probability of the most probable class be given ("max"
, the default) or the probability of each class ("all"
)?
criterion used to predict class membership. See predict.coadisc
.
further arguments to be passed to or from other methods.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
CDA.cv
, predict.coadisc