LR.VAR {easyCODA}R Documentation

Total logratio variance

Description

Computation of total (weighted)logratio variance.

Usage

LR.VAR(LRdata, row.wt = NA, weight=TRUE, vars=FALSE)

Arguments

LRdata

Matrix of logratios, either a vector or preferably the output from one of the functions ALR, CLR, ILR, SLR, PLR or LR

row.wt

Optional set of row weights (default: equal weights)

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.

vars

Output individual variances as well (default: no output of individual variances)

Details

The function LR computes the comoplete set of pairwise logratios, in order ([1,2], [1,3], [2,3], [1,4], [2,4], [3,4], etc).

Value

LRtotvar

The total logratio variance

LRvars

(optional, if vars=TRUE, the individual logratio variances composing the total)

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

LR, ALR, invALR, CLR, invCLR

Examples

data(veg)
LR(veg)

[Package easyCODA version 0.23 Index]