contingency: Obtain 2x2 contingency table from marginal parameters and...

View source: R/rsq_liability.r

contingencyR Documentation

Obtain 2x2 contingency table from marginal parameters and odds ratio

Description

Columns are the case and control frequencies Rows are the frequencies for allele 1 and allele 2

Usage

contingency(af, prop, odds_ratio, eps = 1e-15)

Arguments

af

Allele frequency of effect allele

prop

Proportion of cases

odds_ratio

Odds ratio

eps

tolerance. Default = 1e-15

Value

2x2 contingency table as matrix


explodecomputer/simulateGP documentation built on April 3, 2024, 2:38 a.m.