Description Usage Arguments Details Value Author(s) See Also Examples
Find the odds ratio, per allele, in biallelic marker in a diploid individual. The locus must be under Hardy-Weinburg at the margin, ie, alleles are independent, for this calculation to hold.
1 | allelicOR(xtable)
|
xtable |
A 2x3 contingency table of frequencies or counts of individuals. |
The OR is calculated as (2*#AA.Case + #Aa.Case) * (2*#AA.Control + #Aa.Control) / ((2*#aa.Case + #Aa.Case) * (2*#aa.Control + #Aa.Control))
The odds ratio, floating point.
Andrew McDavid
chisq.sim.factory
, ~~~
1 2 |
[1] 2.333333
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.