or.function.2df {genpwr}R Documentation

2df Model Function

Description

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

Usage

or.function.2df(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

or.function.2df(like=-0.5626909, Case.Rate=0.3, P_AA=0.5625, 
 P_AB=0.375, P_BB=0.0625, True.Model="Recessive", risk_allele=TRUE)


[Package genpwr version 1.0.4 Index]