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 = 10000, geno.model = 0, MAF = 0.1)

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.G documentation built on May 10, 2019, 7:31 a.m.