or_calc {genpwr}R Documentation

Odds ratio calculation

Description

Calculates odds ratio for given parameters. Used by the function odds_ratio_function.

Usage

or_calc(a, b, c, d, e, f, mod, risk_allele)

Arguments

a

The probability of a case given homogeneity for the major allele

b

The probability of a case given heterozygosity

c

The probability of a case given homogeneity for the minor allele

d

The probability of a control given homogeneity for the major allele

e

The probability of a control given heterozygosity

f

The probability of a control given homogeneity for the minor allele#'

mod

The model to be used (eg "Dominant", "Recessive", etc)

risk_allele

Is this allele a risk allele? use T or F

Value

Odds ratio

Examples

or_calc(a = 0.3649185, b = 0.12797197, c = 0.007109554, 
 d= 0.4450815, e= 0.05202803, f = 0.002890446, 
 mod = "Dominant", risk_allele = TRUE)


[Package genpwr version 1.0.4 Index]