Computation of additive logratios (ALRs) with respect to a specified part.
ALR(data, denom=ncol(data), weight=TRUE, stats=FALSE)
The additive logratios (ALRs)
The weights assigned to the ALRs
The index of the denominator used in the computation of the ALRs
The part names in the data, i.e. column names
The part weights
The means of the ALRs (only returned if stats = TRUE
)
The variances of the ALRs (only returned if stats = TRUE
)
The total variance of the ALRs (only returned if stats = TRUE
)
A compositional data frame or matrix
Number of part used in the denominator
Logical indicating if varying weights are returned(default:TRUE
). If FALSE
, unweighted (equal) weights are returned. Alternatively a set of positive weights can be specified.
Logical indicating if means, variances and total variance of the ALRs are returned (default:FALSE
)
Michael Greenacre
The function ALR
computes a set of additive logratios (ALRs) with respect to a specified part (by default, the last part).
Aitchison, J. (1986), The Statistical Analysis of Compositional Data, Chapman & Hall.
Greenacre, M. (2018), Compositional Data Analysis in Practice, Chapman & Hall / CRC Press.
invALR
, LR
, CLR
, invCLR
, LR.VAR