Performs the calculations for the three hypotheses for two diferent samples, using Compositional Data Analysis (CoDA) principles.
CoDA_2Group_All(comp1, comp2)
comp1 | A matrix of observations for composition 1. Entries must be non-zero and positive. |
---|---|
comp2 | A matrix of observations for composition 2. Entries must be non-zero and positive. |
A tibble with the statistic (Q), degrees of freedom (nu), p-value, and null hypothesis (H0)
Pawlowsky-Hlahn, V., Egozcue, J.J & Tolosna-Delgado, R. (2015). Modeling and analysis of compositional data. John Wiley & Sons.
Aitchison, J. (1986). The statistical analysis of compositional data. Chapman and Hall.
data("Hongite", package = 'compositions') data("Kongite", package = 'compositions') CoDA_2Group_All(Hongite,Kongite)#> # A tibble: 3 × 4 #> Q nu pval H0 #> <dbl> <dbl> <dbl> <chr> #> 1 45.7 14 0.0000316 equal centers and covariance #> 2 10.7 10 0.384 equal covariance with different centers #> 3 33.6 4 0.000000893 equal centers with different covariance