LR {easyCODA} | R Documentation |
All pairwise logratios
Description
Computation of all pairwise logratios.
Usage
LR(data, ordering=1:ncol(data), weight=TRUE)
Arguments
data |
A compositional data frame or matrix |
ordering |
A permutation of the columns (default: the original ordering) |
weight |
Logical indicating if varying weights are returned (default: |
Details
The function LR
computes the complete set of pairwise logratios, in the order [1,2], [1,3], [2,3], [1,4], [2,4], [3,4], etc.
Value
LR |
The pairwise logratios as columns of a data matrix |
LR.wt |
The weights assigned to the respective logratios |
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
, invALR
, CLR
, invCLR
, LR.VAR
Examples
data(veg)
LR(veg)