simAlleleFreqs: Simulate Allele Frequencies
Description
Simulate some allele frequencies using Dirichlet Random variables
Usage
simAlleleFreqs(
nLoci = 10,
allelesPerLocus = rep(10, nLoci),
shape = rep(3, nLoci)
)
Value
a list with elements locus.\(l\) where \(l=1,\ldots,L\), each
of which are vectors of length allelesPerLocus[l], consisting of allele
frequencies for that locus
Arguments
- nLoci
\(L\) the number of loci in the multiplex
- allelesPerLocus
the number of alleles per locus
- shape
the shape parameter
Examples
Run this codeset.seed(123)
simAlleleFreqs()
Run the code above in your browser using DataLab