sim.corr.binary.data: Function to simulate the correlated binary data with given...

Description Usage Arguments Value

Description

Function to simulate the correlated binary data with given OR.

Usage

1
sim.corr.binary.data(N, preval, mafco, OR, ncase, ncont)

Arguments

N

Population size, greater than ncase+ncont

preval

prevalence rate of the disease

mafco

MAF for controls

OR

the odds ratio

ncase

Number of cases in the taken sample, taken from case of the N population

ncont

Number of controls in the sample, take from the controls of N population

Value

a dataframe include genotype data (x) and phenotype data (y) in each column


Struglab/RVS documentation built on May 9, 2019, 3:11 p.m.