DistAlleleShare: Build Expected Distribution of Numbers of Shared Alleles

Description Usage Arguments Details Value References Examples

View source: R/DistAlleleShare.R

Description

Build Expected Distribution of Numbers of Shared Alleles

Usage

1

Arguments

e

a matrix/dataframe of probability of shared alleles; outcome of "ExpProAlleleShare" or "RealProAlleleShare". Each row denotes each locus. The first column is the case of 0 shared alleles, the second column is the case of 1 shared alleles, the third column is the case of 2 shared alleles.

Details

This function build the expected distribution of numbers of shared alleles for known shared alleles of each pair of individuals.

Value

a dataframe of probabilities of each number of shared alleles(from 0 to 2*loci); the first column is No. of Shared Alleles; the Second Column is Expected Density

References

Chakraborty, R., Stivers, D. N., Su, B., Zhong, Y., & Budowle, B. (1999) <doi:10.1002/(SICI)1522-2683(19990101)20:8<1682::AID-ELPS1682>3.0.CO;2-Z>

Examples

1
2
3
e0<-data.frame("P0"=runif(5,min = 0,max = 0.5),"P1"=runif(5,0,0.5))
e<-data.frame(e0,"P2"=1-rowSums(e0))
DistAlleleShare(e)

mixIndependR documentation built on March 17, 2021, 5:09 p.m.