Learn R Programming

easyCODA (version 0.40.2)

invCLR: Inverse of centred logratios

Description

Given centred logratios (CLRs), compute the inverse (i.e. recover the original parts)

Usage

invCLR(CLRmatrix, part.names=colnames(CLRmatrix))

Value

parts

The reconstructed parts (they add up to 1)

Arguments

CLRmatrix

A matrix of centred logratios

part.names

Part names in the reconstructed compositional data matrix

Author

Michael Greenacre

Details

The function invCLR computes the original parts, given the centred logratios (CLRs)

References

Aitchison, J. (1986), The Statistical Analysis of Compositional Data, Chapman & Hall.
Greenacre, M. (2018), Compositional Data Analysis in Practice, Chapman & Hall / CRC Press.

See Also

CLR, ALR, invALR, LR.VAR

Examples

Run this code
data(veg)
# compute centred logratios
veg.CLR <- CLR(veg)$LR
# invert back to original parts (parts closed to sum to 1)
invALR(veg.CLR)

Run the code above in your browser using DataLab