Learn R Programming

strataG (version 1.0.3)

tajimasD: Tajima's D

Description

Calculate Tajima's D for a set of sequences to test for selection.

Usage

tajimasD(x)

Arguments

x
set of DNA sequences or a haploid gtypes object with sequences.

Value

  • A named vector with the estimate for D and the p.value that it is different from 0.

References

Tajima, F. 1989. Statistical method for testing the neutral mutation hypothesis by DNA polymorphism. Genetics 123:585-595.