Isometric Log-Ratio (ilr) transformation
Undertakes an isometric log-ratio transformation to remove the effects of closure in a data frame or matrix on a single part to support univariate investigations.
gx.ilr(xx, v1, ifwarn = FALSE)
xx |
a |
v1 |
the column index of the part to be ilr transformed. |
ifwarn |
set to |
Most analytical chemical data for major, minor and trace elements are of a closed form, i.e. for a physical individual sample they sum to a constant, whether it be percent, ppm (mg/kg), or some other units. It does not matter that only some components contributing to the constant sum are present in the matrix, the data are closed. As a result, as some elements increase in concentration others must decrease, this leads to correlation measures that do not reflect the true underlying relationships, see gx.symm.coords.r
.
z |
a vector |
xx
may be a data frame or matrix, but must contains only parts, compositions, for the data set under study. This function should only be used for univariate investigations of a single part v1
, it is inappropriate to use this transformation for multivariate studies, in which case use functions ilr
or clr
should be employed.
Note that the vector z
is numerically equal to the clr transform for v1
in the data matrix xx
times a constant sqrt(p/(p-1))
, where p
is the mumber of parts in the matrix xx
.
Any less than detection limit values represented by negative values, or zeros or other numeric codes representing blanks in the data, must be removed prior to executing this function, see ltdl.fix.df
.
Any rows containing NA
s in the data will be removed prior to undertaking the transformation.
Robert G. Garrett
Aitchison, J. and Egozcue, J.J., 2005. Compositional data analysis; where are we and where should we be heading. Mathematical Geology, 37(7):829-850.
Filzmoser, P., Hron, K. and Reimann, C., 2009. Principal component analysis for compositional data with outliers. Environmetrics, 20(6):621-633.
Filzmoser, P., Hron, K. and Reimann, C., 2009. Univariate statistical analysis of environmental (compositional) data - problems and possibilities. Science of the Total Environment, 407:6100-6108.
## Make test data sind available data(sind.mat2open) ## Undertake ilr transform temp <- gx.ilr(sind.mat2open, 5) temp ## Clean-up rm(temp)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.