classify specimen based on between-group PCA, CVA or typprobClass
classify(x, cv = TRUE, ...)# S3 method for bgPCA
classify(x, cv = TRUE, newdata = NULL, ...)
# S3 method for CVA
classify(x, cv = T, newdata = NULL, prior = NULL, ...)
# S3 method for typprob
classify(x, cv = TRUE, ...)
classification result
original grouping variable, only available if newdata=NULL
only for object of CVA and typprob, also the posterior probabilities are returned
result of groupPCA, CVA or typprobClass
logical: use cross-validated scores if available
currently not used
use new data to predict scores and evaluate group affinity
specify prior probability for CVA evaluation if NULL prior from CVA will be used. Be m
your number of groups then to set the prior equally for all groups set prior=rep(1,m)/m
.
CVA,groupPCA, typprobClass