simmixstock2            package:mixstock            R Documentation

_S_i_m_u_l_a_t_e _m_u_l_t_i_p_l_e _m_i_x_e_d _s_t_o_c_k_s

_D_e_s_c_r_i_p_t_i_o_n:

     Simulated multiple mixed stocks

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

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

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

     Returns an object of type 'mixstock.data'

_A_u_t_h_o_r(_s):

     Ben Bolker

