LR: All pairwise logratios

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

View source: R/LR.r

Description

Computation of all pairwise logratios.

Usage

1
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:TRUE). If FALSE, unweighted (equal) weights are returned. Alternatively a set of positive weights can be specified.

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

1
2

easyCODA documentation built on Jan. 15, 2022, 3 a.m.