powered by
Simulate a haplotypic frequency distribution based on a specified gamma distribution.
simGammaHaps(pop.size, num.haps, shape, scale, return.freq = TRUE, plot = TRUE)
size of population.
number of haplotypes to generate.
parameters of Gamma distribution (see dgamma).
dgamma
logical. Return frequency table of haplotypes? If FALSE return vector of haplotypes.
FALSE
logical. Show plot of haplotypic frequency distribution?
Frequency table of haplotypes.
# NOT RUN { haps <- simGammaHaps(1000, 15, 1, 2.5) print(haps) # }
Run the code above in your browser using DataLab