invALR: Inverse of additive logratios

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

View source: R/invALR.r

Description

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

Usage

1
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))

Details

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

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

ALR, LR, CLR, invCLR, LR.VAR

Examples

1
2
3
4
5
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)

easyCODA documentation built on Sept. 20, 2020, 1:07 a.m.