The function calculates Tajima's D.
TajimaD(SFS)
SFS | vector with the site frequency spectrum. |
---|
Tajima's D.
See SFS
for explanation of the site frequency spectrum.
If one runs TajimaD
with a vector that contains anything other than natural numbers,
an error will occur.
For details about Tajima's D, consult the analyzeDNA vignette.
Wakeley J. (2009) Coalescent Theory: An Introduction. Colorado: Roberts and Company Publishers.
#> [1] 0.1587498