simGammaHaps: Simulate Haplotypes

Description Usage Arguments Value Author(s) Examples

View source: R/simGammaHaps.R

Description

Simulate a haplotypic frequency distribution based on a specified gamma distribution.

Usage

1
simGammaHaps(pop.size, num.haps, shape, scale, return.freq = TRUE, plot = TRUE)

Arguments

pop.size

size of population.

num.haps

number of haplotypes to generate.

shape, scale

parameters of Gamma distribution (see dgamma).

return.freq

logical. Return frequency table of haplotypes? If FALSE return vector of haplotypes.

plot

logical. Show plot of haplotypic frequency distribution?

Value

Frequency table of haplotypes.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

1
2
haps <- simGammaHaps(1000, 15, 1, 2.5)
print(haps)

strataG documentation built on Feb. 28, 2020, 9:07 a.m.