simpedigree {MasterBayes}R Documentation

Simulates a Pedigree given a Log-Linear Model

Description

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

Usage

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

Arguments

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

Value

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

Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

References

Hadfield J.D. et al (2006) Molecular Ecology 15 3715-31

See Also

MCMCped


[Package MasterBayes version 2.42 Index]