RealProAlleleShare {mixIndependR} | R Documentation |
Calculate the Real Probability of 0,1 and 2 Shared Alleles###
Description
Calculate the Real Probability of 0,1 and 2 Shared Alleles###
Usage
RealProAlleleShare(AS)
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
AS<-matrix(sample(c(0:2),20,replace=TRUE,prob=c(0.3,0.3,0.4)),nrow=5)
RealProAlleleShare(AS)
[Package mixIndependR version 1.0.0 Index]