predictSiteGroup | R Documentation |
Uses results of lda to predict which group the site belongs to based on the data for the site/sample. Tested! Works! nsite * ngroup
predictSiteGroup(data, center, invcov, group)
data |
a matrix of site predictor variables |
center |
a matrix of group means for the site calibration data |
invcov |
a pooled inverse coveraince matrix for the site calibration data |
group |
a vector of grouping indicators for the calibration data |
a list: 1) a matrix of posterior probabilities of group membership 2) the minimum distance of each site from the group centroids (used to determine whether the site is an outlier)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.