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

HWAlr

Compute additive log-ratio transformation


Description

HWAlr computes the additive log-ratio transformation for genotype counts of bi-allelic genetic markers.

Usage

HWAlr(X, zeroadj = 0.5, denominator = 2)

Arguments

X

A matrix of genotype counts (columns AA, AB and BB)

zeroadj

A zero adjustment parameter (0.5 by default)

denominator

The genotype count put in the denominator of the log-ratio (1=AA, 2=AB, 3=BB)

Value

A matrix or vector of log-ratio coordinates

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

References

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

Examples

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

HardyWeinberg

Statistical Tests and Graphics for Hardy-Weinberg Equilibrium

v1.7.2
GPL (>= 2)
Authors
Jan Graffelman [aut, cre], Christopher Chang [ctb], Xavi Puig [ctb], Jan Wigginton [ctb], Leonardo Ortoleva [ctb], William R. Engels [ctb]
Initial release
2021-04-28

We don't support your browser anymore

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