Learn R Programming

easyCODA (version 0.40.2)

PLR: Pivot logratios

Description

Computation of the set of pivot logratios(PLRs) based on the specified ordering of parts

Usage

PLR(data, ordering=1:ncol(data), weight=TRUE)

Value

LR

The pivot logratios (PLRs)

LR.wt

The weights assigned to the PLRs

Arguments

data

A compositional data frame or matrix

ordering

The ordering of the parts to be used in the PLRs (by default, the original ordering of the columns)

weight

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

Author

Michael Greenacre

Details

The function PLR computes the set of pivot logratios according to the ordering of the parts.

References

Hron K., Filzmoser P., de Caritat P., Fiserova E., Gardlo A. (2017). Weighted pivot coordinates for copositional data and their application to geochemical mapping. Mathematical Geosciences 49, 777-796.

See Also

ILR, SLR, CLR, ALR, LR

Examples

Run this code
data(veg)
PLR(veg, ordering=c(1,3,2))

Run the code above in your browser using DataLab