getGammaMutRates: Get a Vector of Randomly Chosen Mutation Rates

Description Usage Arguments Value Examples

View source: R/getGammaMutRates.R

Description

Get a vector of mutation rates from a gamma distribution by specifying the mean and std. dev. of the distribution

Usage

1
getGammaMutRates(n, gmean = 1e-04, gstd = 1e-05)

Arguments

n

Number of loci to select rates for

gmean

Mean of the gamma distribution

gstd

Std Dev of the gamma distribution

Value

a vector of mutation rates (type numeric)

Examples

1
2
3
4
rates = getGammaMutRates(1000,gmean=0.0001, gstd=0.0001)
hist(rates)
rates = getGammaMutRates(1000,gmean=0.0001, gstd=0.00001)
hist(rates)

christianparobek/skeleSim documentation built on Feb. 29, 2020, 6:58 p.m.