invALR | R Documentation |
Given additive logratios (ALRs) with respect to a specified part, compute the inverse (i.e. original parts)
invALR(ALRmatrix, part.names=paste("part",1:(ncol(ALRmatrix)+1),sep=""), denom=NA)
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)) |
The function invALR
computes the original parts, given the additive logratios (ALRs)
parts |
The reconstructed parts (they add up to 1) |
Michael Greenacre
Aitchison, J. (1986), The Statistical Analysis of Compositional Data, Chapman & Hall.
Greenacre, M. (2018), Compositional Data Analysis in Practice, Chapman & Hall / CRC Press.
ALR
, LR
, CLR
, invCLR
, LR.VAR
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.