TajimaD: Tajima's D

Description Usage Arguments Details Value References Examples

View source: R/TajimaD.R

Description

The function calculates Tajima's D.

Usage

1

Arguments

SFS

vector with the site frequency spectrum.

Details

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.

Value

Tajima's D.

References

Wakeley J. (2009) Coalescent Theory: An Introduction. Colorado: Roberts and Company Publishers.

Examples

1
TajimaD(c(3,0,2,1,0,0,0))

aumath-advancedr2019/simDNA documentation built on Nov. 27, 2019, 11 a.m.