Learn R Programming

robCompositions (version 1.6.3)

clr: Centred log-ratio transformation

Description

The clr transformation moves D-part compositional data from the simplex into a D-dimensional real space.

Usage

clr(x)

Arguments

x
multivariate data ideally of class data.frame or matrix

Value

  • The transformed data, including
  • x.clrclr transformed data
  • gmthe geometric means of the original composition.

Details

Each composition is divided by the geometric mean of its parts before the logarithm is taken.

References

Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman & Hall Ltd., London (UK). 416p.

See Also

cenLR, cenLRinv, clr

Examples

Run this code
## function is deprecated, use cenLR instead.

Run the code above in your browser using DataLab