Learn R Programming

robCompositions (version 2.0.0)

cenLR: Centred log-ratio transformation

Description

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

Usage

cenLR(x)

Arguments

x
multivariate data ideally of class data.frame or matrix

Value

The transformed data, including
x.clr
clr transformed data
gm
the 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

cenLRinv, addLR, isomLR, addLRinv, isomLRinv

Examples

Run this code

data(expenditures)
eclr <- cenLR(expenditures)
inveclr <- cenLRinv(eclr)
head(expenditures)
head(inveclr)
head(isomLRinv(eclr$x.clr))

Run the code above in your browser using DataLab