solve_a: Binomial coefficient calculation

Description Usage Arguments Value Examples

View source: R/odds_ratio_function.R

Description

Operates within add.or.function to solve for 'a' when 'b' is known in an additive model

Usage

1
solve_a(b, cr, P_AA, P_AB, P_BB)

Arguments

b

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

cr

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

Value

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

Examples

1
solve_a(0.1493558, 0.3, 0.5625, 0.375, 0.062)

genpwr documentation built on March 31, 2021, 1:06 a.m.