powered by
Operates within add.or.function to find probability of disease in a recessive truth given AB or BB, additive test model
find.prob.rec(x, P_AA, P_AB, P_BB, cr, like)
Probability of disease given AB or BB
Probability the allele is homozygous for the major allele
Probability the allele is heterozygous
Probability the allele is homozygous for the minor allele
proportion of cases in the sample (cases/(cases + controls)).
Expected log likelihood
: The "a" in the binomial function ax^2 + bx + c that arises in solution for the additive OR functions
# NOT RUN { find.prob.rec(0.7072381, 0.5625, 0.375, 0.0625, 0.3, -0.6005743) # }
Run the code above in your browser using DataLab