The pivot coordinate transformation and its inverse | R Documentation |
The pivot coordinate transformation and its inverse.
pivot(x)
pivotinv(y)
x |
A numerical matrix with the compositional data. |
y |
A numerical matrix with data to be closed into the simplex. |
The pivot coordinate transformation and its inverse are computed. This means that no zeros are allowed.
A matrix with the alr transformed data (if pivot is used) or with the compositional data (if the pivotinv is used).
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Peter Filzmoser, Karel Hron and Matthias Templ (2018). Applied Compositional Data Analysis With Worked Examples in R (pages 49 and 51). Springer.
alfa, alfainv, alr, green
library(MASS)
x <- as.matrix(fgl[, 2:9])
x <- x / rowSums(x)
y <- pivot(x)
x1 <- alrinv(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.