The multiplicative log-ratio transformation and its inverse | R Documentation |
The multiplicative log-ratio transformation and its inverse.
mlr(x)
mlrinv(y)
x |
A numerical matrix with the compositional data. |
y |
A numerical matrix with data to be closed into the simplex. |
The multiplicative log-ratio transformation and its inverse are applied here. This means that no zeros are allowed.
A matrix with the mlr transformed data (if mlr is used) or with the compositional data (if the mlrinv is used).
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.
alr, pivot, green, alfa
library(MASS)
x <- as.matrix(fgl[, 2:9])
x <- x / rowSums(x)
y <- mlr(x)
x1 <- mlrinv(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.