tab.pop. Pairwise relatedness is calculated by either "Bxy", "Sxy", "Mxy", "Li", "lxy", "rxy", "loiselle", "wang.fin", "wang",
  "ritland", "morans.fin" or "morans" allele.sharing. Pairwise relatedness is calculated for different number of loci beginning with only one up to the maximum number of loci in the dataset. Reference populations can be set for the calculations if ref.pop="NA". tab.pop is used as an estimate of overall allele frequencies. Distance between pairwise relatedness estimates are calculated using dist() with euclidean calculation. Graphically, a .pdf file is exported and the object Random.loci.differences contains each pairwise difference for usage in further statistics. 
     
       
     Loci.test(tab.pop, ref.pop = "NA", object = FALSE, value = NA, bt = 1000,  file.output = FALSE)inputformat
	     allele.sharing
	     
          ## Loci.test to analyse Loci distribution in example data
     data(demerelpop)
     demerelpop.sp <- split(demerelpop,demerelpop[,2])
     
     Loci.results <- Loci.test(demerelpop.sp[[1]][,1:8], 
                     ref.pop = "NA", object = TRUE,
                     value = "rxy", bt = 10)  
     
     Run the code above in your browser using DataLab