simpedigree           package:MasterBayes           R Documentation

_S_i_m_u_l_a_t_e_s _a _P_e_d_i_g_r_e_e _g_i_v_e_n _a _L_o_g-_L_i_n_e_a_r _M_o_d_e_l

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

     Given a 'PdataPed' object simulates a pedigree according to the
     linear model defined by 'formula' and user specified parameter
     values for the given model.

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

     simpedigree(PdP, beta=NULL, nUS=NULL, ...)

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

     PdP: a 'PdataPed' object

    beta: parameter vector for the model defined by the 'formula'
          argument in 'PdataPed'

     nUS: vector for the size of the unsampled population(s) defined in
          the 'USdam' and 'USsire' arguments passed to 'PdataPed'. 
          Parmeters for the unsampled female population come before the
          male population.

     ...: further arguments to be passed

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

     ped: pedigree in 3 columns: id, dam, sire. Base individuals have
          NA as parents

USsire.data: binary vector indicating unsampled sire records (1)

USsire.formula: variable of the form 'expression(varPed(...))' that can
          be included in the 'formula' argument of 'PdataPed' so that
          unobserved male records are effectively hidden

USdam.data: binary vector indicating unsampled dam records (1)

USdam.formula: variable of the form 'expression(varPed(...))' that can
          be included in the 'formula' argument of 'PdataPed' so that
          unobserved male records are effectively hidden

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

     Jarrod Hadfield j.hadfield@sheffield.ac.uk

_R_e_f_e_r_e_n_c_e_s:

     Hadfield J.D. _et al_ (2006) Molecular Ecology 15 3715-31

_S_e_e _A_l_s_o:

     MCMCped

_E_x_a_m_p_l_e_s:

