test.g | R Documentation |
Tests the significance of the effect of level on genetic differentiation
test.g(data = data, level, nperm = 100,...)
data |
a data frame containing the genotypes for the different loci |
level |
A vector containing the assignment of each observation to its level |
nperm |
The number of permutations to carry out for the test |
... |
Mainly here to allow passing diploid=FALSE if necessary |
g.star |
A vector containing all the generated g-statistics, the last one beeing the observed |
p.val |
The p-value associated with the test |
Jerome Goudet jerome.goudet@unil.ch
data(gtrunchier) attach(gtrunchier) test.g(gtrunchier[,-c(1,2)],Locality)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.