Tests the significance of the effect of test.lev on genetic differentiation
test.between(data, test.lev, rand.unit, nperm, ...)
data
: a data frame containing the genotypes for the different locitest.lev
: A vector containing the units from which to construct the contingency tablesrand.unit
: A vector containing the assignment of each observation to the units to be permuttednperm
: The number of permutations to carry out for the test...
: Mainly here to allow passing diploid=FALSE if necessaryg.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 whether the locality level has a significant effect on genetic structuring test.between(gtrunchier[,-c(1,2)],test.lev=Locality,rand.unit=Patch)
Useful links