Test Hardy-Weinberg equilibrium at each locus
loci_hwe.Rd
Return the p-value from an exact test of HWE.
Usage
loci_hwe(.x, ...)
# S3 method for class 'tbl_df'
loci_hwe(.x, mid_p = TRUE, ...)
# S3 method for class 'vctrs_bigSNP'
loci_hwe(.x, mid_p = TRUE, ...)
# S3 method for class 'grouped_df'
loci_hwe(.x, ...)
Arguments
- .x
a vector of class
vctrs_bigSNP
(usually thegenotypes
column of agen_tibble
object), or agen_tibble
.- ...
not used.
- mid_p
boolean on whether the mid-p value should be computed. Default is TRUE, as in PLINK.