add.or.function {genpwr}R Documentation

Additive Model Function

Description

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

Usage

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

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)


[Package genpwr version 1.0.4 Index]