clr {robCompositions} | R Documentation |
The clr transformation moves D-part compositional data from the simplex into a D-dimensional real space.
clr(x)
x |
multivariate data ideally of class data.frame or matrix |
Each composition is divided by the geometric mean of its parts before the logarithm is taken.
The transformed data, including
x.clr |
clr transformed data |
gm |
the geometric means of the original composition. |
The resulting transformed data set is singular by definition.
Matthias Templ
Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman & Hall Ltd., London (UK). 416p.
invclr
, alr
, ilr
, invalr
, invilr
data(expenditures) eclr <- clr(expenditures) inveclr <- invclr(eclr) head(expenditures) head(inveclr) head(invclr(eclr$x.clr))