robCompositions (version 2.4.1)

cenLR: Centred logratio coefficients

Description

The centred logratio (clr) coefficients map D-part compositional data from the simplex into a D-dimensional real space.

Usage

cenLR(x, base = exp(1))

Value

the resulting clr coefficients, including

x.clr

clr coefficients

gm

the geometric means of the original compositional data.

Arguments

x

multivariate data, ideally of class data.frame or matrix

base

a positive or complex number: the base with respect to which logarithms are computed. Defaults to exp(1).

Author

Matthias Templ

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 and Hall Ltd., London (UK). 416p.

See Also

cenLRinv, addLR, pivotCoord, addLRinv, pivotCoordInv

Examples

Run this code

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

Run the code above in your browser using DataLab