Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

alr.all

All pairwise additive log-ratio transformations


Description

All pairwise additive log-ratio transformations.

Usage

alr.all(x)

Arguments

x

A numerical matrix with the compositional data.

Details

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.

Value

A matrix with all pairwise alr transformed data.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

Aitchison J. (1986). The statistical analysis of compositional data. Chapman \& Hall.

See Also

Examples

x <- as.matrix(iris[, 2:4])
x <- x / rowSums(x)
y <- alr.all(x)

Compositional

Compositional Data Analysis

v4.6
GPL (>= 2)
Authors
Michail Tsagris [aut, cre], Giorgos Athineou [aut], Abdulaziz Alenazi [ctb]
Initial release
2021-04-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.