simmixstock2 {mixstock} | R Documentation |
Simulated multiple mixed stocks
simmixstock2(sourcefreq, destmat, sourcesize, sourcesampsize, mixsampsize, nmark, nsource, nmix, rseed = NULL)
sourcefreq |
matrix of marker frequencies in the source populations |
destmat |
matrix of contributions of sources to mixed stocks |
sourcesize |
vector of relative sizes of sources: default is equal sizes for all sources |
sourcesampsize |
sizes of samples from source populations |
mixsampsize |
sizes of samples from mixed populations |
nmark |
number of distinct markers |
nsource |
number of source populations |
nmix |
number of mixed populations |
rseed |
random number seed |
If sourcefreq
and destmat
are
specified, computes expected marker frequencies in mixed
stocks and simulates accordingly. If sourcefreq
and/or destmat
are missing, they are generated
randomly with uniform probabilities.
Returns an object of type mixstock.data
Ben Bolker