compareestimators: Compare relatedness estimators.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/related.R

Description

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.

Usage

1
compareestimators(filename, ninds)

Arguments

filename

An object generated by the readgenotypedata function, containing genotype and allele frequency data.

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.)

Value

A figure containing box plots comparing the values obtained from each estimator for each known relatedness value.

Author(s)

Tim Frasier <timothy.frasier@smu.ca>

See Also

readgenotypedata, familysim, cleanuprvals

Examples

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)	

related documentation built on May 2, 2019, 6:49 p.m.