Description Usage Arguments Details Value Author(s) References Examples
View source: R/permutate.DeltaD.R
This function performs permutations for pairwise comparison of allelic differentiation.
1 | permutate.DeltaD(file, ncode, permutations)
|
file |
Genepop file |
ncode |
Genotype coding |
permutations |
Number of permutations |
This function runs slowly because the permutations work on the random sampling of the individuals from raw data and calculating the statistics every iteration. The permutation test here shuffles the individuals and samples the individuals to calculate the Delta D every permutation. Significance of the allelic differentiation is obtained from Monte-Carlo test.
pwDeltaD.obs |
The observed value of allelic differentiation Delta D |
pwalltests |
The test results of pairwise Delta D |
qinxinghu@gmail.com
Thioulouse, J., & Dray, S. (2007). Interactive multivariate data analysis in R with the ade4 and ade4TkGUI packages. Journal of Statistical Software, 22(5), 1-14.
1 2 3 | f <- system.file('extdata',package='HierDpart')
infile <- file.path(f, "Island.gen")
permutate.DeltaD=function(infile,ncode=3,permutations=999)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.