Learn R Programming

easyCODA (version 0.40.2)

SLR: Amalgamation (summed) logratio

Description

Computation of a single amalgamation (summed) logratio

Usage

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

Value

LR

The amalgamation (summed)) logratio (SLR)

LR.wt

The weight assigned to the SLR

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.

Author

Michael Greenacre

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.

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

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

Run the code above in your browser using DataLab