powered by
Calculates odds ratio for given parameters. Used by the function odds_ratio_function.
or_calc(a, b, c, d, e, f, mod, risk_allele)
The probability of a case given homogeneity for the major allele
The probability of a case given heterozygosity
The probability of a case given homogeneity for the minor allele
The probability of a control given homogeneity for the major allele
The probability of a control given heterozygosity
The probability of a control given homogeneity for the minor allele#'
The model to be used (eg "Dominant", "Recessive", etc)
Is this allele a risk allele? use T or F
Odds ratio
# NOT RUN { 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) # }
Run the code above in your browser using DataLab