add.or.function: Additive Model Function

Description Usage Arguments Value Examples

View source: R/odds_ratio_function.R

Description

Operates within odds_ratio_function to calculate odds ratios for a Test.Model of "Additive"

Usage

1
add.or.function(like, Case.Rate, P_AA, P_AB, P_BB, True.Model, risk_allele)

Arguments

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"

Value

: The odds ratios and their corresponding genetic model(s)

Examples

1
2
add.or.function(like=-0.57162, Case.Rate=0.3, P_AA=0.5625, P_AB=0.375, 
 P_BB=0.0625, True.Model="Additive", risk_allele=TRUE)

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