A weight parameter which controls how close to the meanAlleleFreq the allele frequencies are sampled, via a beta distribution. A higher number implies allele frequencies stay closer to mean
samples
The sample ids
imputed
Whether to simulate imputed data
dirichlet
The weight of a dirichlet distribution used to simulated imputed data
Value
Returns matrix of genotypes, with individuals by rows, and snps by column, or a 3 dimensional array if imputed is TRUE