y mixing together the individuals from two different populations. This is an example of a “mixture model”.</p>
<p>For simplicity we will assume the two different populations are mixed in equal proportions. That is the “mixture proportions” are 0.5 and 0.5.</p>
<p>The following <code>r_simplemix</code> function generates data from such a model. The allele frequencies for the two populations must be specified in a matrix <code>P</code> whose first row contains the allele frequencies for population <co