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

alr

The additive log-ratio transformation and its inverse


Description

The additive log-ratio transformation and its inverse.

Usage

alr(x)
alrinv(y)

Arguments

x

A numerical matrix with the compositional data.

y

A numerical matrix with data to be closed into the simplex.

Details

The additive log-ratio transformation with the first component being the commn divisor is applied. The inverse of this trnasformation is also available. This means that no zeros are allowed.

Value

A matrix with the alr transformed data (if alr is used) or with the compositional data (if the alrinv is used).

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

library(MASS)
x <- as.matrix(fgl[, 2:9])
x <- x / rowSums(x)
y <- alr(x)
x1 <- alrinv(y)

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.