simGammaHaps: Simulate Haplotypes

View source: R/simGammaHaps.R

simGammaHapsR Documentation

Simulate Haplotypes

Description

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

Usage

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

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


EricArcher/strataG documentation built on Feb. 12, 2023, 4:11 a.m.