Description Usage Arguments Details Value Note Author(s) References See Also Examples
The centred logratio (clr) coefficients map D-part compositional data from the simplex into a D-dimensional real space.
1 |
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 |
Each composition is divided by the geometric mean of its parts before the logarithm is taken.
the resulting clr coefficients, including
x.clr |
clr coefficients |
gm |
the geometric means of the original compositional data. |
The resulting 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.
cenLRinv
, addLR
, pivotCoord
,
addLRinv
, pivotCoordInv
1 2 3 4 5 6 | data(expenditures)
eclr <- cenLR(expenditures)
inveclr <- cenLRinv(eclr)
head(expenditures)
head(inveclr)
head(pivotCoordInv(eclr$x.clr))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.