sim.geno.data: Generates genotypes for a genetic variant

Description Usage Arguments Value Author(s)

Description

Generates two alleles and combines them to form the genotype of a SNP under a binary or additive genetic model.

Usage

1
sim.geno.data(num.obs = NULL, geno.model = NULL, MAF = NULL)

Arguments

num.obs

number of observations to generate.

geno.model

genetic model; binary=0 and additive=1.

MAF

minor allele frequency of the SNP (in ESPRESSO this is the frequency of the 'at risk' allele)

Value

a dataframe that contains the following variables: allele.A major allele allele.B minor allele genotype genotype

Author(s)

Gaye A.


agaye/ESPRESSO.ExE documentation built on May 10, 2019, 7:30 a.m.