Description Usage Arguments Value Author(s) See Also Examples
Generates simulated individuals of known relatedness, based on observed allele frequencies, then estimates relatedness using 4 methods (lynchli, lynchrd, quellergt, wang) and creates a boxplot of results so that the performance of the different estimators can easily be compared.
1 | compareestimators(filename, ninds)
|
filename |
An object generated by the |
ninds |
A whole number indicating the number of pairs of individuals of known relatedness you want to generate for each relatedness value (e.g., entering 100 would result in 100 parent-offspring pairs, 100 full-sib pairs, 100 half-sib pairs, and 100 unrelated pairs.) |
A figure containing box plots comparing the values obtained from each estimator for each known relatedness value.
Tim Frasier <timothy.frasier@smu.ca>
readgenotypedata
, familysim
, cleanuprvals
1 2 3 4 5 6 7 8 9 | ## Not run:
#---Load data set---#
data(GenotypeData)
input <- readgenotypedata(GenotypeData)
#---Compare relatedness estimators---#
compareestimators(input, 100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.