RealProAlleleShare: Calculate the Real Probability of 0,1 and 2 Shared Alleles###

Description Usage Arguments Details Value Examples

View source: R/RealProAlleleShare.R

Description

Calculate the Real Probability of 0,1 and 2 Shared Alleles###

Usage

1

Arguments

AS

a matrix/double of no. of Shared alleles, made up with 0,1 and 2; Outcome of "AlleleShare_Table". Each column denotes each locus. Each row denotes each individual.

Details

This function Calculates the density of 0,1 and 2 Shared Alleles for a set of loci. Usually followed by write.csv(as.data.frame(y),file = "~/*.csv") to export the result of a n x3 matrix.

Value

a matrix/double of real density of 0,1 and 2 shared alleles for each locus. Each row denotes each locus. The first column denotes the probability of 0 shared alleles, the second denotes 1 shared allele, the third denotes 2 shared alleles.

Examples

1
2
AS<-matrix(sample(c(0:2),20,replace=TRUE,prob=c(0.3,0.3,0.4)),nrow=5)
RealProAlleleShare(AS)

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