Function to allocate an individual to one of several populations.
rg.mvalloc(pcrit =0.05, x,...)
Arguments
pcrit: When the probability of group membership is less than pcrit it is allocated to group 0.
x: contains the individuals to be allocated
...: arguments for creating a list of groups
Details
m objects are the reference populations generated by md.gait, rg.robmva or rg.mva to estimate Mahalanobis distancesand predicted probabilities of group membership for individuals in matrix x. Note that the log |determinant| of the appropriate covariance matrix is added to the Mahalanobis distance on the assumption that the covariance matrices are inhomogeneous. If the data require transformation this must be undertaken before calling this function. This implies that a similar transformation must have been used for all the reference data subsets.
Returns
groups: the groups
m: number of groups
n: number of individuals to be allocated
p: number of columns
pgm: number of individuals to be allocated multiplied with the groups
pcrit: critical probability
xalloc: number of individuals as integer
References
C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.