powered by
Tests the significance of the effect of level on genetic differentiation
test.g(data = data, level, nperm = 100,...)
a data frame containing the genotypes for the different loci
A vector containing the assignment of each observation to its level
The number of permutations to carry out for the test
Mainly here to allow passing diploid=FALSE if necessary
A vector containing all the generated g-statistics, the last one beeing the observed
The p-value associated with the test
# NOT RUN { data(gtrunchier) attach(gtrunchier) test.g(gtrunchier[,-c(1,2)],Locality) # }
Run the code above in your browser using DataLab