loci_hwe.Rd
Return the p-value from an exact test of HWE.
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, ...)
a vector of class vctrs_bigSNP
(usually the genotypes
column of
a gen_tibble
object),
or a gen_tibble
.
not used.
boolean on whether the mid-p value should be computed. Default is TRUE, as in PLINK.
a vector of probabilities from HWE exact test, one per locus
This function uses the original C++ algorithm from PLINK 1.90.
NOTE There are no tests for this function yet! Unit tests are needed.