| SUBCO | R Documentation |
Computation of several measures comparing results on subcompositions with the corresponding results in a composition.
SUBCO(data, nsub=100, propsub=1/3, weighted=TRUE, power=NA, chi=FALSE,
procrustes=TRUE, distances=TRUE, correlations=TRUE, covariances=TRUE, seed=123)
data |
A data frame or matrix of compositional data, which can contain zeros. |
nsub |
Number of random subcompositions for measuring subcomositional coherence |
propsub |
Proportion of parts in the random subcompositions (for measuring subcomositional coherence (default=1/3) |
weighted |
Whether the subcompositions are selected by weighted or unweighted random sampling
(default is |
power |
OPtional power transfomr of the compositional data. |
chi |
Optional chi-square standardization of the compositional data |
procrustes |
Computes Procrustes correlation between compositional and subcompositional part geoetries |
distances |
Computes concordance coefficient between compositional and subcompositional part distances |
correlations |
Computes concordance coefficient between compositional and subcompositional part correaltions |
covariances |
Computes concordance coefficient between compositional and subcompositional part covariances |
seed |
Value of seed for reproducibility of the random sampling |
The function SUBCO takes a compositional data set, including the zeros, and compares results on random subcompositions with the corresponding results on the original composition.
Various measures of subcompositional coherence are computed in the results, and the user can select between Procrustes correlations, and concordance measures for distances, correlations and covariances, for the subcompositional parts and the corresponding parts in the composition. The results can be
summarized using summary of the SUBCO object.
procrustes.pro |
Procrustes correlation between subcompositional and compositional part geometries |
nrocrustes.chi |
Same as procrusts.pro but for compositions that have been chi-square standardized |
concord.distance.pro |
Concordances between distances on subcompositional parts and those in the composition |
concord.distance.chi |
Same as concord.distance.pro but for chi-square standardized data |
concord.cor |
Concordances between subcompositional part correaltions and the corresponding compositional ones |
concord.cov.pro |
Concordances between subcompositional part covariances and the corresponding compositional ones |
concord.cov.chi |
Same as concord.cov.pro but for chi-square standardized data |
Michael Greenacre
Greenacre, M. (2018, 2026), Compositional Data Analysis in Practice, 1st and 2nd editions, Chapman & Hall / CRC Press.
Lin, L. I.-K. (1989). A concordance correlation coefficient to evaluate reproducibility.
Biometrics 45: 255-268.
Martinez-Alvara, M., Greenacre, M. and Blasco, A. (2026) Omics data in relative abundances are almost subcompositionally coherent. Frontiers in Microbiology 17: 1809364. )
CONCORD
# measure how close the Kimberlite compositions are to subcompositional coherence
# this example has been trimmed to meet CRAN's limit on example execution time
data(Kimberlite)
kim <- Kimberlite[,3:24]
kim.subco <- SUBCO(kim, procrustes=FALSE, distances=FALSE, covariances=FALSE)
summary(kim.subco)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.