diff_test(x, sim = TRUE, nreps = 2000)
named vector of p-values testing the null hypothesis these samples where drawn from a panmictic population.
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).
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 the various differentiation statistics (D, G''ST and Phi'ST)to ascertain how meaningful such results might be.
fca23 0.00990099
fisher.test
from base R, which this
function wraps