Learn R Programming

easyCODA (version 0.28)

invALR: Inverse of additive logratios

Description

Given additive logratios (ALRs) with respect to a specified part, compute the inverse (i.e. original parts)

Usage

invALR(ALRmatrix, part.names=paste("part",1:(ncol(ALRmatrix)+1),sep=""), denom=NA)

Arguments

ALRmatrix

A matrix of additive logratios (ALRs) with respect to a specified part)

part.names

Part names in the reconstructed compositional data matrix

denom

The index of the denominator used in the computation of the ALRs (default: last part))

Value

parts

The reconstructed parts (they add up to 1)

Details

The function invALR computes the original parts, given the additive logratios (ALRs)

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

ALR, LR, CLR, invCLR, LR.VAR

Examples

Run this code
# NOT RUN {
data(veg)
# compute additive logratios with respect to second part
veg.ALR <- ALR(veg, denom=2)$LR
# recover original parts (to get same order, specify the denominator used originally)
invALR(veg.ALR, denom=2)
# }

Run the code above in your browser using DataLab