classify | R Documentation |
classify specimen based on between-group PCA, CVA or typprobClass
classify(x, cv = TRUE, ...)
## S3 method for class 'bgPCA'
classify(x, cv = TRUE, newdata = NULL, ...)
## S3 method for class 'CVA'
classify(x, cv = T, newdata = NULL, prior = NULL, ...)
## S3 method for class 'typprob'
classify(x, cv = TRUE, ...)
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 |
class |
classification result |
groups |
original grouping variable, only available if |
posterior |
only for object of CVA and typprob, also the posterior probabilities are returned |
CVA,groupPCA, typprobClass
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.