simpedigree {MasterBayes} | R Documentation |
Given a PdataPed
object simulates a pedigree according to the linear model defined by formula
and user specified parameter values for the given model.
simpedigree(PdP, beta=NULL, nUS=NULL, ...)
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 |
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 |
Jarrod Hadfield j.hadfield@ed.ac.uk
Hadfield J.D. et al (2006) Molecular Ecology 15 3715-31
MCMCped