pivot: The pivot coordinate transformation and its inverse

View source: R/pivot.R

The pivot coordinate transformation and its inverseR Documentation

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.

Details

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

Value

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

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

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

library(MASS)
x <- as.matrix(fgl[, 2:9])
x <- x / rowSums(x)
y <- pivot(x)
x1 <- alrinv(y)

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.