This function tests the neutral mutation hypothesis with Tajima's D.
tajima.test(x)
A list with three numeric values:
Tajima's D statistic.
the p-value assuming that D follows a normal distribution with mean zero and variance one.
the p-value assuming that D follows a beta distribution after rescaling on [0, 1] (Tajima, 1989).
a set of DNA sequences (object of class "DNAbin"
).
Emmanuel Paradis
Tajima, F. (1989) Statistical method for testing the neutral mutation hypothesis by DNA polymorphism. Genetics, 123, 595--595.
require(ape)
data(woodmouse)
tajima.test(woodmouse)
Run the code above in your browser using DataLab