Description Usage Arguments Value Examples
View source: R/odds_ratio_function.R
Operates within odds_ratio_function to calculate odds ratios for a Test.Model of "2df"
1 | or.function.2df(like, Case.Rate, P_AA, P_AB, P_BB, True.Model, risk_allele)
|
like |
Expected log likelihood |
Case.Rate |
proportion of cases in the sample (cases/(cases + controls)). |
P_AA |
Probability the allele is homozygous for the major allele |
P_AB |
Probability the allele is heterozygous |
P_BB |
Probability the allele is homozygous for the minor allele |
True.Model |
A vector object specifying the true underlying genetic model(s): 'Dominant', 'Additive', or 'Recessive' |
risk_allele |
Logical: If OR > 1, the allele is classified as a "risk allele" |
: The odds ratios and their corresponding genetic model(s)
1 2 | or.function.2df(like=-0.5626909, Case.Rate=0.3, P_AA=0.5625,
P_AB=0.375, P_BB=0.0625, True.Model="Recessive", risk_allele=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.