Learn R Programming

Morpho (version 2.12)

classify: classify specimen based on between-group PCA or CVA or typprobClass

Description

classify specimen based on between-group PCA, CVA or typprobClass

Usage

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, ...)

Value

class

classification result

groups

original grouping variable, only available if newdata=NULL

posterior

only for object of CVA and typprob, also the posterior probabilities are returned

Arguments

x

result of groupPCA, CVA or typprobClass

cv

logical: use cross-validated scores if available

...

currently not used

newdata

use new data to predict scores and evaluate group affinity

prior

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.

See Also

CVA,groupPCA, typprobClass