simAlleleFreqs: Simulate Allele Frequencies

View source: R/simAlleleFreqs.R

simAlleleFreqsR Documentation

Simulate Allele Frequencies

Description

Simulate some allele frequencies using Dirichlet Random variables

Usage

simAlleleFreqs(
  nLoci = 10,
  allelesPerLocus = rep(10, nLoci),
  shape = rep(3, nLoci)
)

Arguments

nLoci

L the number of loci in the multiplex

allelesPerLocus

the number of alleles per locus

shape

the shape parameter

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

Examples

set.seed(123)
simAlleleFreqs()


DNAtools documentation built on Dec. 5, 2025, 9:07 a.m.