diff_test: An exact test of population differentiation for Genind objects
Description
This function uses Fisher's exact test to determine if
alleles in sub-populations are drawn randomly from a
larger population (i.e. a significance test for allelic
differentiation among sub-populations).
Usage
diff_test(x, sim = TRUE, nreps = 10000)
Arguments
x
genind object (from package adegenet)
sim
simulate p-value (required for all but the
smallest datasets)
nreps
number of steps used to simulate p-value
(default 1000)
Details
Note, this test returns p-values for each locus in a
dataset _not_ estimates of effect size. Since most
populations have some degree of population
differentiation, very large samples are almost guaranteed
to return significant results. Refer to estimates of D or
Gst to ascertain how meaningful such results might be.