Learn R Programming

Compositional (version 5.5)

The pivot coordinate transformation and its inverse: The pivot coordinate transformation and its inverse

Description

The pivot coordinate transformation and its inverse.

Usage

pivot(x)
pivotinv(y)

Arguments

x

A numerical matrix with the compositional data.

y

A numerical matrix with data to be closed into the simplex.

Value

A matrix with the alr transformed data (if pivot is used) or with the compositional data (if the pivotinv is used).

Details

The pivot coordinate transformation and its inverse are computed. This means that no zeros are allowed.

References

Peter Filzmoser, Karel Hron and Matthias Templ (2018). Applied Compositional Data Analysis With Worked Examples in R (pages 49 and 51). Springer.

See Also

alfa, alfainv, alr, green

Examples

Run this code
# NOT RUN {
library(MASS)
x <- as.matrix(fgl[, 2:9])
x <- x / rowSums(x)
y <- pivot(x)
x1 <- alrinv(y)
# }

Run the code above in your browser using DataLab