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

View source: R/classify.r

classifyR Documentation

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

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.

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

See Also

CVA,groupPCA, typprobClass


Morpho documentation built on June 22, 2024, 7:19 p.m.