or_calc: Odds ratio calculation

Description Usage Arguments Value Examples

View source: R/or_calc.R

Description

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

Usage

1
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

1
2
3
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)

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