To cite HardyWeinberg in publications use:

Graffelman J (2015). “Exploring Diallelic Genetic Markers: The HardyWeinberg Package.” Journal of Statistical Software, 64(3), 1–23. doi:10.18637/jss.v064.i03.

Graffelman J, Morales-Camarena J (2008). “Graphical tests for Hardy-Weinberg Equilibrium based on the ternary plot.” Human Heredity, 65(2), 77–84. doi:10.1159/000108939.

Graffelman J, Weir BS (2016). “Testing for Hardy-Weinberg equilibrium at bi-allelic genetic markers on the X chromosome.” Heredity, 116(6), 558–568. doi:10.1038/hdy.2016.20.

Corresponding BibTeX entries:

  @Article{,
    title = {Exploring Diallelic Genetic Markers: The {HardyWeinberg}
      Package},
    author = {Jan Graffelman},
    year = {2015},
    journal = {Journal of Statistical Software},
    volume = {64},
    number = {3},
    pages = {1--23},
    doi = {10.18637/jss.v064.i03},
  }
  @Article{,
    title = {Graphical tests for Hardy-Weinberg Equilibrium based on
      the ternary plot},
    author = {Jan Graffelman and Jair Morales-Camarena},
    year = {2008},
    journal = {Human Heredity},
    volume = {65},
    number = {2},
    pages = {77--84},
    doi = {10.1159/000108939},
  }
  @Article{,
    title = {Testing for Hardy-Weinberg equilibrium at bi-allelic
      genetic markers on the X chromosome},
    author = {Jan Graffelman and Bruce S. Weir},
    year = {2016},
    journal = {Heredity},
    volume = {116},
    number = {6},
    pages = {558--568},
    publisher = {Nature Publishing Group},
    doi = {10.1038/hdy.2016.20},
  }