skeleSim (version 0.9.8)

getGammaMutRates: Get a Vector of Randomly Chosen Mutation Rates

Description

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

Usage

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

Run this code
# NOT RUN {
rates = getGammaMutRates(1000,gmean=0.0001, gstd=0.0001)
hist(rates)
rates = getGammaMutRates(1000,gmean=0.0001, gstd=0.00001)
hist(rates)
# }

Run the code above in your browser using DataCamp Workspace