| hwenodr | R Documentation |
We run a likelihood ratio test against the null of no HWE, assuming that there is no double reduction.
hwenodr(nvec)
nvec |
A vector containing the observed genotype counts,
where |
A list with some or all of the following elements
rThe estimated allele frequency.
chisq_hweThe chi-square statistic against the null of equilibrium given no double reduction.
df_hweThe degrees of freedom associated with
chisq_hwe.
p_hweThe p-value against the null of equilibrium given no double reduction.
David Gerard
set.seed(10)
qvec <- c(0.2, 0.3, 0.4, 0.1)
nvec <- c(stats::rmultinom(n = 1, size = 100, prob = qvec))
hwenodr(nvec = nvec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.