HWIlr: Compute isometric log ratio coordinates.

View source: R/HWIlr.R

HWIlrR Documentation

Compute isometric log ratio coordinates.

Description

HWIlr computes isometric log ratio coordinates for genotypic compositions (AA, AB, BB)

Usage

HWIlr(X, zeroadj = 0.5)

Arguments

X

A matrix of genotype counts, markers in rows, counts for AA, AB and BB in three columns

zeroadj

Adjustment for zeros (0.5 by defaults)

Value

A matrix of log ratio coordinates.

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

References

Egozcue, J.J., Pawlowsky-Glahn, V., Mateu-Figueras, G. and Barcelo-Vidal, C. (2003) Isometric Logratio Transformations for Compositional Data Analysis. Mathematical Geology 35(3), pp. 279-300.

Graffelman, J. and Egozcue, J. J. (2011) Hardy-Weinberg equilibrium: a non-parametric compositional approach. In: Vera Pawlowsky-Glahn and Antonella Buccianti (eds.) Compositional Data Analysis: Theory and Applications, John Wiley & Sons, Ltd, pp. 207-215

See Also

HWAlr,HWClr

Examples

X <- HWData(100,100)
Y <- HWIlr(X)

HardyWeinberg documentation built on May 29, 2024, 6:17 a.m.