Description Usage Arguments Value Author(s) See Also Examples
Uses observed allele frequencies to generated a user-defined number of pairs of individuals of known relatedness.
1 | familysim(freqs, ninds = 100L)
|
freqs |
An object containing allele frequency data. Can be generated with the |
ninds |
The number of pairs of individuals to simulate for each relatedness values. For example, entering 100 would generate 100 parent-offspring pairs, 100 full-sib pairs, 100 half-sib pairs, and 100 unrelated pairs. |
A data frame containing the genotypes of simulated individuals.
Tim Frasier <timothy.frasier@smu.ca>
1 2 3 4 5 6 7 8 9 | ## Not run:
#---Load data set---#
data(GenotypeData)
input <- readgenotypedata(GenotypeData)
#---Generate simulated individuals---#
sim <- familysim(input$freqs, 100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.