GenGenoMat {AllelicSeries}R Documentation

Generate Genotype Matrix

Description

Generate genotypes for n subject at snps variants in linkage equilibrium. Genotypes are generated such that the MAC is always >= 1.

Usage

GenGenoMat(n, snps, maf_range = c(0.001, 0.005))

Arguments

n

Sample size.

snps

Number of SNP in the gene.

maf_range

Range of minor allele frequencies: c(MIN, MAX).

Value

(n x snps) numeric matrix.


[Package AllelicSeries version 0.1.1.2 Index]