SLR {easyCODA}R Documentation

Amalgamation (summed) logratio

Description

Computation of a single amalgamation (summed) logratio

Usage

SLR(data, numer=NA, denom=NA, weight=TRUE)

Arguments

data

A compositional data frame or matrix

numer

Vector of parts in the numerator

denom

Vector of parts in the denominator

weight

Logical indicating if a varying weight is returned (default:TRUE). If FALSE, a weight based on equally-weighted parts is returned. Alternatively a positive weight can be specified.

Details

The function SLR computes a single amalgamation logratio based on the specified numerator and denominator parts that define the two summations in the ratio.

Value

LR

The amalgamation (summed)) logratio (SLR)

LR.wt

The weight assigned to the SLR

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

ILR, ALR, CLR, PLR, LR

Examples

data(veg)
SLR(veg, numer=1, denom=2:3)

[Package easyCODA version 0.34.3 Index]