invCLR: Inverse of centred logratios

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/invCLR.r

Description

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

Usage

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

Arguments

CLRmatrix

A matrix of centred logratios

part.names

Part names in the reconstructed compositional data matrix

Details

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

Value

parts

The reconstructed parts (they add up to 1)

Author(s)

Michael Greenacre

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

1
2
3
4
5
data(veg)
# compute centred logratios
veg.CLR <- CLR(veg)$LR
# invert back to original parts (parts closed to sum to 1)
invALR(veg.CLR)

easyCODA documentation built on Jan. 15, 2022, 3 a.m.