{
  "_id": "6ad4a4f77774b2311ffeac38",
  "Package": "HardyWeinberg",
  "Type": "Package",
  "Title": "Statistical Tests and Graphics for Hardy-Weinberg Equilibrium",
  "Version": "1.7.9",
  "Date": "2025-09-09",
  "Authors@R": "c(person(\"Jan\", \"Graffelman\", role = c(\"aut\", \"cre\"), email = \"jan.graffelman@upc.edu\"),\nperson(\"Christopher\", \"Chang\", role = \"ctb\", email = \"chrchang523@gmail.com\"),\nperson(\"Xavi\", \"Puig\", role = \"ctb\", email = \"xavier.puig@upc.edu\"),\nperson(\"Jan\", \"Wigginton\", role = \"ctb\"),\nperson(\"Leonardo\", \"Ortoleva\", role = \"ctb\", email= \"leonardo.ortoleva@estudiantat.upc.edu\"),\nperson(\"William R.\",\"Engels\", role =  \"ctb\", email= \"wrengels@wisc.edu\"))",
  "Author": "Jan Graffelman [aut, cre], Christopher Chang [ctb], Xavi Puig\n[ctb], Jan Wigginton [ctb], Leonardo Ortoleva [ctb], William R.\nEngels [ctb]",
  "Maintainer": "Jan Graffelman <jan.graffelman@upc.edu>",
  "Description": "Contains tools for exploring Hardy-Weinberg equilibrium\n(Hardy, 1908; Weinberg, 1908) for bi and multi-allelic genetic\nmarker data. All classical tests (chi-square, exact,\nlikelihood-ratio and permutation tests) with bi-allelic\nvariants are included in the package, as well as functions for\npower computation and for the simulation of marker data under\nequilibrium and disequilibrium. Routines for dealing with\nmarkers on the X-chromosome are included (Graffelman & Weir,\n2016) <doi:10.1038/hdy.2016.20>, including Bayesian procedures.\nSome exact and permutation procedures also work with\nmulti-allelic variants. Special test procedures that jointly\naddress Hardy-Weinberg equilibrium and equality of allele\nfrequencies in both sexes are supplied, for the bi and\nmulti-allelic case. Functions for testing equilibrium in the\npresence of missing data by using multiple imputation are also\nprovided. Implements several graphics for exploring the\nequilibrium status of a large set of bi-allelic markers:\nternary plots with acceptance regions, log-ratio plots and Q-Q\nplots. The functionality of the package is explained in detail\nin a related JSS paper <doi:10.18637/jss.v064.i03>.",
  "License": "GPL (>= 2)",
  "URL": "https://www.r-project.org, https://www-eio.upc.edu/~jan/",
  "NeedsCompilation": "yes",
  "VignetteBuilder": "knitr, rmarkdown",
  "Packaged": {
    "Date": "2026-10-18 10:41:17 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "cmake make libicu-dev libx11-dev zlib1g-dev",
  "Repository": "https://jangraffelman.r-universe.dev",
  "Date/Publication": "2025-09-10 07:51:24 UTC",
  "RemoteUrl": "https://github.com/cran/HardyWeinberg",
  "RemoteRef": "HEAD",
  "RemoteSha": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
  "_user": "jangraffelman",
  "_type": "src",
  "_file": "HardyWeinberg_1.7.9.tar.gz",
  "_fileid": "https://r2.ropensci.org/114354f1179cdfaf79ebdda549cbe1fb11f5aa2773a3a7094a0fed7955c05734",
  "_filesize": 2718703,
  "_sha256": "114354f1179cdfaf79ebdda549cbe1fb11f5aa2773a3a7094a0fed7955c05734",
  "_expires": "2027-01-26T10:52:33.000Z",
  "_created": "2026-10-18T10:41:17.000Z",
  "_published": "2026-10-18T10:52:39.453Z",
  "_buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117654324504,
      "time": 148,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134190966"
    },
    {
      "job": 117654324606,
      "time": 187,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134231584"
    },
    {
      "job": 117654324428,
      "time": 145,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134215847"
    },
    {
      "job": 117654324451,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12133982693"
    },
    {
      "job": 117654324456,
      "time": 141,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12133799154"
    },
    {
      "job": 117654324414,
      "time": 354,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12134295967"
    },
    {
      "job": 117654324434,
      "time": 144,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134216223"
    },
    {
      "job": 117654324490,
      "time": 348,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12133654676"
    },
    {
      "job": 117652960312,
      "time": 424,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12133897663"
    },
    {
      "job": 117654324387,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12133778430"
    },
    {
      "job": 117654324446,
      "time": 427,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134480428"
    },
    {
      "job": 117654324413,
      "time": 203,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134081275"
    },
    {
      "job": 117654324637,
      "time": 127,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12133992542"
    },
    {
      "job": 117654324501,
      "time": 414,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12133848475"
    },
    {
      "job": 117654324511,
      "time": 174,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134335881"
    }
  ],
  "_upstream": "https://github.com/cran/HardyWeinberg",
  "_commit": {
    "id": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
    "author": "Jan Graffelman <jan.graffelman@upc.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.7.9\n",
    "time": 1757490684
  },
  "_maintainer": {
    "name": "Jan Graffelman",
    "email": "jan.graffelman@upc.edu",
    "login": "jangraffelman",
    "description": "",
    "uuid": 47753513
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 1.8.0",
      "role": "Depends"
    },
    {
      "package": "mice",
      "role": "Depends"
    },
    {
      "package": "nnet",
      "role": "Depends"
    },
    {
      "package": "Rsolnp",
      "role": "Depends"
    },
    {
      "package": "shape",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jangraffelman",
      "count": 30,
      "uuid": 47753513
    }
  ],
  "_userbio": {
    "uuid": 47753513,
    "type": "user",
    "name": "jangraffelman",
    "followers": 2
  },
  "_downloads": {
    "count": 3630,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/HardyWeinberg"
  },
  "_mentions": 18,
  "_searchresults": 188,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/HardyWeinberg.html",
    "extra/manual.pdf"
  ],
  "_realowner": "jangraffelman",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2007-10-02"
    },
    {
      "version": "1.1",
      "date": "2007-10-03"
    },
    {
      "version": "1.2",
      "date": "2008-04-22"
    },
    {
      "version": "1.3",
      "date": "2009-03-27"
    },
    {
      "version": "1.4",
      "date": "2009-11-23"
    },
    {
      "version": "1.4.1",
      "date": "2012-03-20"
    },
    {
      "version": "1.5.1",
      "date": "2013-11-14"
    },
    {
      "version": "1.5.2",
      "date": "2013-11-25"
    },
    {
      "version": "1.5.4",
      "date": "2014-08-11"
    },
    {
      "version": "1.5.5",
      "date": "2015-02-26"
    },
    {
      "version": "1.5.6",
      "date": "2016-03-29"
    },
    {
      "version": "1.5.7",
      "date": "2017-04-22"
    },
    {
      "version": "1.5.8",
      "date": "2017-05-17"
    },
    {
      "version": "1.5.9",
      "date": "2017-12-16"
    },
    {
      "version": "1.6.1",
      "date": "2018-05-29"
    },
    {
      "version": "1.6.2",
      "date": "2019-04-14"
    },
    {
      "version": "1.6.3",
      "date": "2019-06-29"
    },
    {
      "version": "1.6.6",
      "date": "2020-08-13"
    },
    {
      "version": "1.6.7",
      "date": "2020-09-20"
    },
    {
      "version": "1.6.8",
      "date": "2020-09-20"
    },
    {
      "version": "1.6.9",
      "date": "2020-12-08"
    },
    {
      "version": "1.7.0",
      "date": "2020-12-14"
    },
    {
      "version": "1.7.1",
      "date": "2021-01-04"
    },
    {
      "version": "1.7.2",
      "date": "2021-04-28"
    },
    {
      "version": "1.7.3",
      "date": "2021-11-17"
    },
    {
      "version": "1.7.4",
      "date": "2021-11-26"
    },
    {
      "version": "1.7.5",
      "date": "2022-05-07"
    },
    {
      "version": "1.7.7",
      "date": "2024-03-31"
    },
    {
      "version": "1.7.8",
      "date": "2024-04-06"
    },
    {
      "version": "1.7.9",
      "date": "2025-09-10"
    }
  ],
  "_exports": [
    "af",
    "AFtest",
    "afx",
    "agcounts",
    "alleles",
    "AllelesToTriangular",
    "dgraffelmanweir.bi",
    "dlevene",
    "dlevene.bi",
    "EAFExact",
    "fisherz",
    "fold",
    "GenerateSamples",
    "genlabels",
    "he",
    "HWABO",
    "HWAIC",
    "HWAlltests",
    "HWAlr",
    "HWAlrPlot",
    "HWBalance",
    "HWChisq",
    "HWChisqMat",
    "HWChisqStats",
    "HWClo",
    "HWClr",
    "HWClrPlot",
    "HWCondProbAB",
    "HWD",
    "HWData",
    "HWEM",
    "HWExact",
    "HWExactMat",
    "HWExactPrevious",
    "HWExactStats",
    "HWf",
    "HWGenotypePlot",
    "HWIlr",
    "HWIlrPlot",
    "HWLindley",
    "HWLindley.cri",
    "HWLRAllTests",
    "HWLratio",
    "HWLRtest",
    "HWMissing",
    "HWNetwork",
    "HWPerm",
    "HWPerm.mult",
    "HWPosterior",
    "HWPower",
    "HWQqplot",
    "HWStr",
    "HWStrata",
    "HWTernaryPlot",
    "HWTriExact",
    "ifisherz",
    "is.mono",
    "mac",
    "maf",
    "MakeCounts",
    "MakeFactor",
    "n.alleles",
    "order.auto",
    "order.x",
    "qqunif",
    "recode",
    "shannon",
    "strsort",
    "ThetatoF",
    "toTriangular",
    "UniqueGenotypeCounts",
    "vaf"
  ],
  "_datasets": [
    {
      "name": "ABO1KG",
      "title": "Predicted ABO genotypes for the Expanded 1000 Genomes Project cohort",
      "object": "ABO1KG",
      "file": "ABO1KG.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "SAMPLE_NAME",
        "POPULATION",
        "fatherID",
        "motherID",
        "sex",
        "CONTINENT",
        "rs8176719",
        "rs7853989",
        "rs8176743",
        "rs8176746",
        "rs8176747",
        "ABO"
      ],
      "rows": 3202,
      "table": true,
      "tojson": true
    },
    {
      "name": "Alzheimer",
      "title": "Genotype frequencies for 70 SNPs related to Alzheimer's disease",
      "object": "Alzheimer",
      "file": "Alzheimer.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "MM",
        "Mm",
        "mm",
        "Group"
      ],
      "rows": 70,
      "table": true,
      "tojson": true
    },
    {
      "name": "CEUchr22",
      "title": "Biallelic polymorphisms sampled from chromosome 22 of the CEU population of the 1000 Genomes project.",
      "object": "CEUchr22",
      "file": "CEUchr22.rda",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [],
      "rows": 99,
      "table": true,
      "tojson": true
    },
    {
      "name": "Glyoxalase",
      "title": "Glyoxalase genotype data",
      "object": "Glyoxalase",
      "file": "Glyoxalase.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "AA",
        "AB",
        "BB"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    },
    {
      "name": "HapMapCHBChr1",
      "title": "Genotype frequencies for 225 SNPs on chromosome 1 of the CHB population.",
      "object": "HapMapCHBChr1",
      "file": "HapMapCHBChr1.rda",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "AA",
        "AB",
        "BB"
      ],
      "rows": 225,
      "table": true,
      "tojson": true
    },
    {
      "name": "JPTmultiallelicsChr7",
      "title": "Multi-allelic autosomal variants of the Japanese population of the 1000 genomes project",
      "object": "JPTmultiallelicsChr7",
      "file": "JPTmultiallelicsChr7.rda",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "JPTmultiallelicsChrX",
      "title": "Multi-allelic X-chromosomal variants of the Japanese population of the 1000 genomes project",
      "object": "JPTmultiallelicsChrX",
      "file": "JPTmultiallelicsChrX.rda",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "JPTsnps",
      "title": "Bi-allelic SNPs from a Japanese population stratified by gender",
      "object": "JPTsnps",
      "file": "JPTsnps.rda",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "AA",
        "AB",
        "BB",
        "AA",
        "AB",
        "BB"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "JPTtriallelicsChr7",
      "title": "Tri-allelic variants on chromosome 7 of the Japanese (JPT) sample of the 1000 genomes project",
      "object": "JPTtriallelicsChr7",
      "file": "JPTtriallelicsChr7.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "pos",
        "mAA",
        "mAB",
        "mAC",
        "mBB",
        "mBC",
        "mCC",
        "fAA",
        "fAB",
        "fAC",
        "fBB",
        "fBC",
        "fCC"
      ],
      "rows": 6,
      "table": true,
      "tojson": true
    },
    {
      "name": "JPTtriallelicsChrX",
      "title": "Tri-allelic variants on the X-chromosome of the Japanese (JPT) sample of the 1000 genomes project",
      "object": "JPTtriallelicsChrX",
      "file": "JPTtriallelicsChrX.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "pos",
        "chr",
        "A",
        "B",
        "C",
        "AA",
        "AB",
        "AC",
        "BB",
        "BC",
        "CC"
      ],
      "rows": 5,
      "table": true,
      "tojson": true
    },
    {
      "name": "Markers",
      "title": "SNP data and intensities",
      "object": "Markers",
      "file": "Markers.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "SNP1",
        "iG",
        "iT",
        "SNP2",
        "SNP3"
      ],
      "rows": 146,
      "table": true,
      "tojson": true
    },
    {
      "name": "Mourant",
      "title": "Genotype frequencies for blood group locus MN",
      "object": "Mourant",
      "file": "Mourant.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Population",
        "Country",
        "Total",
        "MM",
        "MN",
        "NN"
      ],
      "rows": 216,
      "table": true,
      "tojson": true
    },
    {
      "name": "NistSTRs",
      "title": "NIST autosomal STR data",
      "object": "NistSTRs",
      "file": "NistSTRs.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "CSF1PO-1",
        "CSF1PO-2",
        "D10S1248-1",
        "D10S1248-2",
        "D12S391-1",
        "D12S391-2",
        "D13S317-1",
        "D13S317-2",
        "D16S539-1",
        "D16S539-2",
        "D18S51-1",
        "D18S51-2",
        "D19S433-1",
        "D19S433-2",
        "D1S1656-1",
        "D1S1656-2",
        "D21S11-1",
        "D21S11-2",
        "D22S1045-1",
        "D22S1045-2",
        "D2S1338-1",
        "D2S1338-2",
        "D2S441-1",
        "D2S441-2",
        "D3S1358-1",
        "D3S1358-2",
        "D5S818-1",
        "D5S818-2",
        "D6S1043-1",
        "D6S1043-2",
        "D7S820-1",
        "D7S820-2",
        "D8S1179-1",
        "D8S1179-2",
        "F13A01-1",
        "F13A01-2",
        "F13B-1",
        "F13B-2",
        "FESFPS-1",
        "FESFPS-2",
        "FGA-1",
        "FGA-2",
        "LPL-1",
        "LPL-2",
        "Penta_C-1",
        "Penta_C-2",
        "Penta_D-1",
        "Penta_D-2",
        "Penta_E-1",
        "Penta_E-2",
        "SE33-1",
        "SE33-2",
        "TH01-1",
        "TH01-2",
        "TPOX-1",
        "TPOX-2",
        "vWA-1",
        "vWA-2"
      ],
      "rows": 361,
      "table": true,
      "tojson": true
    },
    {
      "name": "TSIXTriAllelics",
      "title": "Tri-allelic polymorphisms on the X chromosome of the TSI population",
      "object": "TSIXTriAllelics",
      "file": "TSIXTriAllelics.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "A",
        "B",
        "C",
        "AA",
        "AB",
        "AC",
        "BB",
        "BC",
        "CC"
      ],
      "rows": 7,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "HardyWeinberg-package",
      "title": "Statistical Tests and Graphics for Hardy-Weinberg Equilibrium",
      "topics": [
        "HardyWeinberg-package",
        "HardyWeinberg"
      ]
    },
    {
      "page": "ABO1KG",
      "title": "Predicted ABO genotypes for the Expanded 1000 Genomes Project cohort",
      "topics": [
        "ABO1KG"
      ]
    },
    {
      "page": "af",
      "title": "Function to compute allele frequencies",
      "topics": [
        "af"
      ]
    },
    {
      "page": "AFtest",
      "title": "Exact test of equality of allele frequencies for males and females",
      "topics": [
        "AFtest"
      ]
    },
    {
      "page": "afx",
      "title": "Function to compute X-chromosomal allele frequencies",
      "topics": [
        "afx"
      ]
    },
    {
      "page": "agcounts",
      "title": "Calculate allele and genotype counts for X-chromosomal markers",
      "topics": [
        "agcounts"
      ]
    },
    {
      "page": "alleles",
      "title": "Extract alleles",
      "topics": [
        "alleles"
      ]
    },
    {
      "page": "AllelesToTriangular",
      "title": "Calculate triangular genotype matrix for vector(s) of alleles.",
      "topics": [
        "AllelesToTriangular"
      ]
    },
    {
      "page": "Alzheimer",
      "title": "Genotype frequencies for 70 SNPs related to Alzheimer's disease",
      "topics": [
        "Alzheimer"
      ]
    },
    {
      "page": "CEUchr22",
      "title": "Biallelic polymorphisms sampled from chromosome 22 of the CEU population of the 1000 Genomes project.",
      "topics": [
        "CEUchr22"
      ]
    },
    {
      "page": "dgraffelmanweir.bi",
      "title": "Calculate Graffelman-Weir exact density for bi-allelic X-chromosomal variant",
      "topics": [
        "dgraffelmanweir.bi"
      ]
    },
    {
      "page": "dlevene",
      "title": "Calculate Levene's exact density for k alleles",
      "topics": [
        "dlevene"
      ]
    },
    {
      "page": "dlevene.bi",
      "title": "Calculate Levene's density for a bi-allelic variant",
      "topics": [
        "dlevene.bi"
      ]
    },
    {
      "page": "EAFExact",
      "title": "Exact test for equality of allele frequencies in males and females",
      "topics": [
        "EAFExact"
      ]
    },
    {
      "page": "fisherz",
      "title": "Fisher's z transformation",
      "topics": [
        "fisherz"
      ]
    },
    {
      "page": "fold",
      "title": "Fold a square matrix",
      "topics": [
        "fold"
      ]
    },
    {
      "page": "GenerateSamples",
      "title": "Generate genotypic compositions",
      "topics": [
        "GenerateSamples"
      ]
    },
    {
      "page": "genlabels",
      "title": "Label genotype counts of a vector or matrix",
      "topics": [
        "genlabels"
      ]
    },
    {
      "page": "Glyoxalase",
      "title": "Glyoxalase genotype data",
      "topics": [
        "Glyoxalase"
      ]
    },
    {
      "page": "HapMapCHBChr1",
      "title": "Genotype frequencies for 225 SNPs on chromosome 1 of the CHB population.",
      "topics": [
        "HapMapCHBChr1"
      ]
    },
    {
      "page": "he",
      "title": "Calculate expected heterozygosity (He)",
      "topics": [
        "he"
      ]
    },
    {
      "page": "HWABO",
      "title": "Estimate allele frequencies and test for Hardy-Weinberg equilibrium with a tri-allelic ABO system.",
      "topics": [
        "HWABO"
      ]
    },
    {
      "page": "HWAIC",
      "title": "Compute Akaike's Information Criterion (AIC) for HWP and EAF models",
      "topics": [
        "HWAIC"
      ]
    },
    {
      "page": "HWAlltests",
      "title": "Perform all tests for Hardy-Weinberg equilibrium",
      "topics": [
        "HWAlltests"
      ]
    },
    {
      "page": "HWAlr",
      "title": "Compute additive log-ratio transformation",
      "topics": [
        "HWAlr"
      ]
    },
    {
      "page": "HWAlrPlot",
      "title": "Plot genetic markers in additive log-ratio coordinates",
      "topics": [
        "HWAlrPlot"
      ]
    },
    {
      "page": "HWBalance",
      "title": "Compositional Statistic and Test for Hardy-Weinberg equilibrium",
      "topics": [
        "HWBalance"
      ]
    },
    {
      "page": "HWChisq",
      "title": "Chi square tests for Hardy Weinberg equilibrium",
      "topics": [
        "HWChisq"
      ]
    },
    {
      "page": "HWChisqMat",
      "title": "Matrix version of HWChisq",
      "topics": [
        "HWChisqMat"
      ]
    },
    {
      "page": "HWChisqStats",
      "title": "Fast computation of chi-square statistics for Hardy-Weinberg equilibrium",
      "topics": [
        "HWChisqStats"
      ]
    },
    {
      "page": "HWClo",
      "title": "Convert genotype counts to compositions",
      "topics": [
        "HWClo"
      ]
    },
    {
      "page": "HWClr",
      "title": "Compute the centred log-ratio transformation",
      "topics": [
        "HWClr"
      ]
    },
    {
      "page": "HWClrPlot",
      "title": "Plot genetic markers in centred log-ratio coordinates",
      "topics": [
        "HWClrPlot"
      ]
    },
    {
      "page": "HWCondProbAB",
      "title": "Compute probability of a genotypic sample",
      "topics": [
        "HWCondProbAB"
      ]
    },
    {
      "page": "HWD",
      "title": "Compute disequilibrium statistic D",
      "topics": [
        "HWD"
      ]
    },
    {
      "page": "HWData",
      "title": "Generate genetic marker data in or out of Hardy-Weinberg Equilibrium",
      "topics": [
        "HWData"
      ]
    },
    {
      "page": "HWEM",
      "title": "Estimation of contributions of two populations to a sample of genotype frequencies with the EM algorithm.",
      "topics": [
        "HWEM"
      ]
    },
    {
      "page": "HWExact",
      "title": "Exact test for Hardy-Weinberg equilibrium",
      "topics": [
        "HWExact"
      ]
    },
    {
      "page": "HWExactMat",
      "title": "Matrix version of HWExact",
      "topics": [
        "HWExactMat"
      ]
    },
    {
      "page": "HWExactPrevious",
      "title": "Exact test for Hardy-Weinberg equilibrium",
      "topics": [
        "HWExactPrevious"
      ]
    },
    {
      "page": "HWExactStats",
      "title": "Computation of Exact p-values for Hardy-Weinberg equilibrium for sets of SNPs",
      "topics": [
        "HWExactStats"
      ]
    },
    {
      "page": "HWf",
      "title": "Computation of inbreeding coefficient",
      "topics": [
        "HWf"
      ]
    },
    {
      "page": "HWGenotypePlot",
      "title": "Scatter plot of the genotype frequencies",
      "topics": [
        "HWGenotypePlot"
      ]
    },
    {
      "page": "HWIlr",
      "title": "Compute isometric log ratio coordinates.",
      "topics": [
        "HWIlr"
      ]
    },
    {
      "page": "HWIlrPlot",
      "title": "Plot bi-allelic genetic markers in isometric log ratio coordinates",
      "topics": [
        "HWIlrPlot"
      ]
    },
    {
      "page": "HWLindley",
      "title": "Calculate a posteriori density for Lindley's alpha",
      "topics": [
        "HWLindley"
      ]
    },
    {
      "page": "HWLindley.cri",
      "title": "Calculate a credible interval for Lindley's alpha for HWE,",
      "topics": [
        "HWLindley.cri"
      ]
    },
    {
      "page": "HWLRAllTests",
      "title": "Perform most relevant likelihood ratio test for Hardy-Weinberg equilibrium and equality of allele frequencies",
      "topics": [
        "HWLRAllTests"
      ]
    },
    {
      "page": "HWLratio",
      "title": "Likelihood ratio test for Hardy Weinberg equilibrium",
      "topics": [
        "HWLratio"
      ]
    },
    {
      "page": "HWLRtest",
      "title": "Perform likelihood ratio test comparing two nested scenarios for a bi-allelic genetic variant, distinguishing the two sexes.",
      "topics": [
        "HWLRtest"
      ]
    },
    {
      "page": "HWMissing",
      "title": "Test a bi-allelic marker for Hardy-Weinberg equilibrium in the presence of missing genotype information.",
      "topics": [
        "HWMissing"
      ]
    },
    {
      "page": "HWNetwork",
      "title": "Autosomal and X-chromosomal exact tests for HWE via a Network algorithm",
      "topics": [
        "HWNetwork"
      ]
    },
    {
      "page": "HWPerm",
      "title": "Permutation test for Hardy-Weinberg equilibrium",
      "topics": [
        "HWPerm"
      ]
    },
    {
      "page": "HWPerm.mult",
      "title": "Permutation tests fo variants with multiple alleles",
      "topics": [
        "HWPerm.mult"
      ]
    },
    {
      "page": "HWPosterior",
      "title": "Calculation of posterior probabilities and Bayes factors for Hardy-Weinberg tests at X-chromosomal variants.",
      "topics": [
        "HWPosterior"
      ]
    },
    {
      "page": "HWPower",
      "title": "Compute the power of a test for Hardy-Weinberg equilibrium.",
      "topics": [
        "HWPower"
      ]
    },
    {
      "page": "HWQqplot",
      "title": "A Q-Q plot for Hardy-Weinberg equilibrium",
      "topics": [
        "HWQQplot",
        "HWQqplot"
      ]
    },
    {
      "page": "HWStr",
      "title": "Testing a set of microsatellites (STRs) for Hardy-Weinberg equilibrium",
      "topics": [
        "HWStr"
      ]
    },
    {
      "page": "HWStrata",
      "title": "Asymptotic test for HWE across strata for a single biallelic marker",
      "topics": [
        "HWStrata"
      ]
    },
    {
      "page": "HWTernaryPlot",
      "title": "Ternary plot with the Hardy-Weinberg acceptance region",
      "topics": [
        "HWTernaryPlot"
      ]
    },
    {
      "page": "HWTriExact",
      "title": "Exact test for Hardy-Weinberg equilibrium and equality of allele frequencies for tri-allelic variants.",
      "topics": [
        "HWTriExact"
      ]
    },
    {
      "page": "ifisherz",
      "title": "Inverse Fisher z transformation",
      "topics": [
        "ifisherz"
      ]
    },
    {
      "page": "is.mono",
      "title": "Detects autosomal and X-chromosomal monomorphic variants",
      "topics": [
        "is.mono"
      ]
    },
    {
      "page": "JPTmultiallelicsChr7",
      "title": "Multi-allelic autosomal variants of the Japanese population of the 1000 genomes project",
      "topics": [
        "JPTmultiallelicsChr7"
      ]
    },
    {
      "page": "JPTmultiallelicsChrX",
      "title": "Multi-allelic X-chromosomal variants of the Japanese population of the 1000 genomes project",
      "topics": [
        "JPTmultiallelicsChrX"
      ]
    },
    {
      "page": "JPTsnps",
      "title": "Bi-allelic SNPs from a Japanese population stratified by gender",
      "topics": [
        "JPTsnps"
      ]
    },
    {
      "page": "JPTtriallelicsChr7",
      "title": "Tri-allelic variants on chromosome 7 of the Japanese (JPT) sample of the 1000 genomes project",
      "topics": [
        "JPTtriallelicsChr7"
      ]
    },
    {
      "page": "JPTtriallelicsChrX",
      "title": "Tri-allelic variants on the X-chromosome of the Japanese (JPT) sample of the 1000 genomes project",
      "topics": [
        "JPTtriallelicsChrX"
      ]
    },
    {
      "page": "mac",
      "title": "Compute the minor allele count.",
      "topics": [
        "mac"
      ]
    },
    {
      "page": "maf",
      "title": "Function to compute minor allele frequencies",
      "topics": [
        "maf"
      ]
    },
    {
      "page": "MakeCounts",
      "title": "Create genotype counts from bi-allelic marker data",
      "topics": [
        "MakeCounts"
      ]
    },
    {
      "page": "MakeFactor",
      "title": "Make factors from genotyping data",
      "topics": [
        "MakeFactor"
      ]
    },
    {
      "page": "Markers",
      "title": "SNP data and intensities",
      "topics": [
        "Markers"
      ]
    },
    {
      "page": "Mourant",
      "title": "Genotype frequencies for blood group locus MN",
      "topics": [
        "Mourant"
      ]
    },
    {
      "page": "n.alleles",
      "title": "Number of alleles",
      "topics": [
        "n.alleles"
      ]
    },
    {
      "page": "NistSTRs",
      "title": "NIST autosomal STR data",
      "topics": [
        "NistSTRs"
      ]
    },
    {
      "page": "order.auto",
      "title": "Reordering of autosomal genotype counts",
      "topics": [
        "order.auto"
      ]
    },
    {
      "page": "order.x",
      "title": "Reordering of X-chromosomal genotype counts",
      "topics": [
        "order.x"
      ]
    },
    {
      "page": "qqunif",
      "title": "Q-Q plot for a uniform distribution.",
      "topics": [
        "qqunif"
      ]
    },
    {
      "page": "recode",
      "title": "Recode genotype information",
      "topics": [
        "recode"
      ]
    },
    {
      "page": "shannon",
      "title": "Shannon index",
      "topics": [
        "shannon"
      ]
    },
    {
      "page": "strsort",
      "title": "Sort tokens of a set of strings",
      "topics": [
        "strsort"
      ]
    },
    {
      "page": "ThetatoF",
      "title": "Convert theta to an inbreeding coefficient",
      "topics": [
        "ThetatoF"
      ]
    },
    {
      "page": "toTriangular",
      "title": "Convert a vector of genotype counts to triangular format",
      "topics": [
        "toTriangular"
      ]
    },
    {
      "page": "TSIXTriAllelics",
      "title": "Tri-allelic polymorphisms on the X chromosome of the TSI population",
      "topics": [
        "TSIXTriAllelics"
      ]
    },
    {
      "page": "UniqueGenotypeCounts",
      "title": "Extract unique genotypic compositions from a matrix",
      "topics": [
        "UniqueGenotypeCounts"
      ]
    },
    {
      "page": "vaf",
      "title": "Computes the sample variance of the allele frequency for a biallelic marker.",
      "topics": [
        "vaf"
      ]
    }
  ],
  "_rundeps": [
    "backports",
    "bit",
    "bit64",
    "boot",
    "broom",
    "cli",
    "clipr",
    "codetools",
    "cpp11",
    "crayon",
    "digest",
    "dplyr",
    "forcats",
    "foreach",
    "future",
    "future.apply",
    "generics",
    "glmnet",
    "globals",
    "glue",
    "haven",
    "hms",
    "iterators",
    "jomo",
    "lattice",
    "lifecycle",
    "listenv",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "mice",
    "minqa",
    "mitml",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "ordinal",
    "pan",
    "parallelly",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "rbibutils",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "readr",
    "reformulas",
    "rlang",
    "rpart",
    "Rsolnp",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "truncnorm",
    "tzdb",
    "ucminf",
    "utf8",
    "vctrs",
    "vroom",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "HardyWeinbergExampleSession.Rmd",
      "filename": "HardyWeinbergExampleSession.html",
      "title": "Example session with the HardyWeinberg package",
      "author": "Jan Graffelman - Dpt. of Statistics, Universitat Politecnica de Catalunya",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "1. Installation",
        "2. A single biallelic marker",
        "2.1. Genotype and allele counts",
        "2.2. Testing for Hardy-Weinberg equilibrium",
        "2.2.1. Autosomal markers",
        "Chi-square test",
        "LRT test",
        "Exact test",
        "Permutation test",
        "Bayesian procedure",
        "2.2.2. X-chromosomal markers",
        "Likelihood ratio test",
        "2.3. Special topics",
        "2.3.1. Missing genotype data",
        "2.3.2. Power computation",
        "2.3.3. Population substructure",
        "Testing across strata",
        "Contributions in mixed samples",
        "2.3.4 Scenario testing under stratification by gender",
        "3. Sets of biallelic markers",
        "3.1. Genotype count patterns",
        "3.2. Testing HWE with many variants",
        "3.3. Visualising HWE test results",
        "3.3.1. Ternary diagrams",
        "3.3.2. QQ plots",
        "3.4. Simulating biallelic marker data",
        "4. Multiallelic markers",
        "4.1. Triallelic variants",
        "The ABO locus",
        "Triallelic variants",
        "4.2. Microsatellites (STRs)",
        "References"
      ],
      "created": "2024-04-01 02:38:44",
      "modified": "2024-04-01 02:38:44",
      "commits": 1
    },
    {
      "source": "HardyWeinberg.Rnw",
      "filename": "HardyWeinberg.pdf",
      "title": "Exploring diallelic genetic markers: the \\pkg{HardyWeinberg} package",
      "engine": "utils::Sweave",
      "headings": [
        "Introduction",
        "Hardy-Weinberg equilibrium",
        "Classical autosomal tests for Hardy-Weinberg equilibrium",
        "X-chromosomal tests for Hardy-Weinberg equilibrium",
        "Graphics for Hardy-Weinberg equilibrium",
        "Multiple alleles",
        "An example session",
        "Discussion"
      ],
      "created": "2015-02-24 00:00:00",
      "modified": "2025-09-10 07:51:24",
      "commits": 20
    }
  ],
  "_score": 6.0893369794030985,
  "_indexed": true,
  "_nocasepkg": "hardyweinberg",
  "_universes": [
    "jangraffelman"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7.9",
      "date": "2026-10-18T10:43:36.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/3296e7468c003d718391f9b5afff0212be736d863212d437475845843b0251bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7.9",
      "date": "2026-10-18T10:43:54.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/530367c1f57523cf32f94aa1ba5b741c0ef9b9ff64ed2a10430752442680a047",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.7.9",
      "date": "2026-10-18T10:43:36.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/7048d5f176940fd0b4a85995cf2530bad1f6b7b328863277bc49a31de7518f79",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.7.9",
      "date": "2026-10-18T10:43:53.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/485d0922024fbab3ad03566ff82316f97e764e7dc852ee69eff3f6eef7d0c803",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7.9",
      "date": "2026-10-18T10:51:23.000Z",
      "arch": "aarch64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/9e3a771b3d1db42d88bf3e95171120b18b5e808a8a82d5f691bd92cd2e785baa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7.9",
      "date": "2026-10-18T10:47:33.000Z",
      "arch": "x86_64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/ee4cc372ab4b4ae3c30271401dbeee149dd5e08ef2fed4f9ca13c8fed9ec7391",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.7.9",
      "date": "2026-10-18T10:48:12.000Z",
      "arch": "aarch64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/71d1783cbb9ef39948929185ffd1fe59779a20acb624c32acd244e3cadc93c66",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.7.9",
      "date": "2026-10-18T10:48:49.000Z",
      "arch": "x86_64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/92a7d3db32e3e8592e9be9801ceeec7c6b9b212f4aa9783d3ad16797009d9e3e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.7.9",
      "date": "2026-10-18T10:43:50.000Z",
      "arch": "emscripten",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/2f354486d7584ae68b6561bf76eac6821e4dff254ac70bb2749c46561fbd86be",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7.9",
      "date": "2026-10-18T10:47:11.000Z",
      "arch": "aarch64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/c2194a16f388619e741d735ae8531e5bdf12811de51c44fa56f3a464932b477f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7.9",
      "date": "2026-10-18T10:42:56.000Z",
      "arch": "x86_64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/86278d8486eaa34eff1a1c38fdbef959d6b13551ca6e647a1849108f0daad35a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.7.9",
      "date": "2026-10-18T10:42:46.000Z",
      "arch": "x86_64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/84341c0fb4656701415a574d77298ec126881a5426ed5dca1f6dd5ff33933cf1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.7.9",
      "date": "2026-10-18T10:46:58.000Z",
      "arch": "aarch64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/19218bbf643d7e8450c4cb2dd2602982f5e78c8319f5c876c6e341537c7c9ed0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.7.9",
      "date": "2026-10-18T10:43:11.000Z",
      "arch": "x86_64",
      "commit": "ab3e069bdffbe7ca6a9bcf0634db43e73fa19cf8",
      "fileid": "https://r2.ropensci.org/85d86b077a270fa117edeafe761590ac3bc27110dc291ae0fb5d74ae93876f42",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jangraffelman/actions/runs/39119802102"
    }
  ]
}