Learn R Programming

genpwr (version 1.0.4)

find.prob.rec: Recessive probability finding function

Description

Operates within add.or.function to find probability of disease in a recessive truth given AB or BB, additive test model

Usage

find.prob.rec(x, P_AA, P_AB, P_BB, cr, like)

Arguments

x

Probability of disease given AB or BB

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

cr

proportion of cases in the sample (cases/(cases + controls)).

like

Expected log likelihood

Value

: The "a" in the binomial function ax^2 + bx + c that arises in solution for the additive OR functions

Examples

Run this code
# 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