All pairwise additive log-ratio transformations | R Documentation |
All pairwise additive log-ratio transformations.
alr.all(x)
x |
A numerical matrix with the compositional data. |
The additive log-ratio transformation with the first component being the commn divisor is applied. Then all the other pairwise log-ratios are computed and added next to each column. For example, divide by the first component, then divide by the second component and so on. This means that no zeros are allowed.
A matrix with all pairwise alr transformed data.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.
alr, alfa
x <- as.matrix(iris[, 2:4])
x <- x / rowSums(x)
y <- alr.all(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.