Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gx.eb

Computation of Empirical Balances


Description

Computes empirical balances (ratios) for the stated columns of a n by p matrix of compositional data.

Usage

gx.eb(r, s, xx, ...)

Arguments

r

number of parts in the numerator.

s

number of parts in the denominator.

xx

matrix for which the balances for the stated columns will be computed.

...

the column indices of the parts in the numerator, followed by the column indices for the parts in the denominator. The total number of indices must equal the sum of r and s.

Value

z

the vector of n balances.

Note

Multi-element ratios have a long history in exploration geochemistry, the parts in numerator and denominator being selected on the basis of prior knowledge of the mineralogy and geochemistry of the feature, commonly a mineral occurrence, being sought. As the features are rare events ratios can be used to accentuate their numerical expression to increase their ‘contrast’ from the main mass of background data. The use of balances, ratios of geometric means of the parts in the numerator and denominator, accomodates the compositional nature of geochemical data.

Author(s)

Robert G. Garrett

References

Egozcue, J.J. & Pawlowsky-Glahn, V., 2005. Groups of Parts and Their Balances in Compositional Data Analysis. Mathematical Geology, 37(7):795-828.

See Also

Examples

## Make test data available
data(sind.mat2open)

## Compute and display empirical balances for columns 1, 5 & 4 
## of the data vs. columns 2 & 3
temp <- gx.eb(3, 2, sind.mat2open, 1, 5, 4, 2, 3)
shape(temp, "Zn.Cu.Cd/Fe.Mn balance")

## Clean-up
rm(sind.mat2open)
rm(temp)

rgr

Applied Geochemistry EDA

v1.1.15
GPL-2
Authors
Robert G. Garrett
Initial release
2018-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.