transform_clr | R Documentation |
Computes CLR transformation.
transform_clr(object, ...)
## S4 method for signature 'CompositionMatrix'
transform_clr(object, weights = FALSE)
## S4 method for signature 'ALR'
transform_clr(object)
object |
A |
... |
Currently not used. |
weights |
A |
The CLR transformation computes the log of each part relative to the geometric mean of all parts.
A CLR
object.
N. Frerebeau
Aitchison, J. (1986). The Statistical Analysis of Compositional Data. London: Chapman and Hall.
Greenacre, M. J. (2019). Compositional Data Analysis in Practice. Boca Raton: CRC Press.
Greenacre, M. J. (2021). Compositional Data Analysis. Annual Review of Statistics and Its Application, 8(1): 271-299. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1146/annurev-statistics-042720-124436")}.
Other log-ratio transformations:
transform_alr()
,
transform_ilr()
,
transform_inverse()
,
transform_lr()
,
transform_plr()
## Data from Aitchison 1986
data("hongite")
## Coerce to compositional data
coda <- as_composition(hongite)
## Centered log-ratio
clr <- transform_clr(coda)
## Inverse transformation
inv_clr <- transform_inverse(clr)
all.equal(coda, inv_clr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.