Description Usage Arguments Examples
View source: R/simulatePedigree.R
Pedigree Simulation
1 | simulatePedigrees(fam.nf, nInitFounderCouples, probToMarry, probChildren)
|
fam.nf |
A integer vector where the entry i indicates the number of individuals at family i. |
nInitFounderCouples |
A integer value representing the number of founders in the first generation. |
probToMarry |
A scalar between 0 and 1 indicating the probability of a individual getting married. Marriages only occur between individuals of the same generation. |
probChildren |
A vector with values between 0 and 1 in which entry i indicates the probability of a couple has i children. |
1 2 3 4 5 | fam.nf <- rep(10, 20) # for 20 families with 10 individuals
nInitFounderCouples <- 1
probChildren <- c(0, 0, 0.3, 0.3, 0.3, 0.1)
probToMarry = 0.85
pedigrees <- simulatePedigrees(fam.nf, nInitFounderCouples, probToMarry, probChildren)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.