Predicts class of the grouping factor based on a Correspondence Discriminant Analysis (performed using discrimin.coa).
Usage
## S3 method for class 'coadisc':
predict(object, newdata, dim=object$nf, method = c("mahalanobis", "euclidian"), ...)
Arguments
object
object of class inheriting from "coadisc".
newdata
contingency table (either a "matrix", "table" or "data.frame" object) giving new individuals (one row per individual).
dim
number of dimensions to be used for prediction.
method
distance metric to be used for prediction. In all cases the predicted class corresponds to the minimum distance between the new individual and the centroid of each class. Default is Mahalanobis distance.
...
further arguments to be passed to or from other methods.