simmixstock2 {mixstock} | R Documentation

## Simulate multiple mixed stocks

### Description

Simulated multiple mixed stocks

### Usage

    simmixstock2(sourcefreq, destmat, sourcesize,
     sourcesampsize, mixsampsize,
                 nmark, nsource, nmix, rseed = NULL)

### Arguments

`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

### Details

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.

### Value

Returns an object of type `mixstock.data`

### Author(s)

Ben Bolker

[Package mixstock version 0.9.2 Index]