View source: R/GcClusterFunctions.R
calcSimplexStats | R Documentation |
Calculate the sample center, total variation matrix, and the metric variance.
calcSimplexStats(gcData)
gcData |
List containing the geochemical and related data. This container is described in the package documentation. |
The sample statistics are described in section 5.2 of Pawlowsky-Glahn et al. (2015).
A list with three elements is returned. Variable D is the number of geochemical concentrations reported for each sample.
sampleCenter |
Vector of length D. |
variationMatrix |
Matrix of dimension D x D. |
metricVariance |
Scalar. The metric variance is also called the total sample variance. |
Pawlowsky-Glahn, V., Egozcue, J.J., and Tolosana-Delgado, R., 2015, Modeling and analysis of compositional data: John Wiley and Sons, Ltd.
## Not run:
simplexStats <- calcSimplexStats(gcData)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.