Learn R Programming

pegas (version 0.1)

tajima.test: Test of the Neutral Mutation Hypothesis

Description

This function tests the neutral mutation hypothesis with Tajima's D.

Usage

tajima.test(x)

Arguments

x
a set of DNA sequences (object of class "DNAbin").

Value

  • a list with three numeric values:
  • DTajima's D statistic.
  • Pval.normalthe p-value assuming that D follows a normal distribution with mean zero and variance one.
  • Pval.betathe p-value assuming that D follows a beta distribution after rescaling on [0, 1] (Tajima, 1989).

References

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

Examples

Run this code
require(ape)
data(woodmouse)
tajima.test(woodmouse)

Run the code above in your browser using DataLab