Learn R Programming

mmod (version 1.01)

pairwise_D: Calculates pairwise values of Jost's D

Description

This function calculates Jost's D, a measure of genetic differentiation, between all combinations of populaitons in a genind object.

Usage

pairwise_D(x, linearized = FALSE)

Arguments

x
genind object (from package adegenet)
linearized
logical, if TRUE will turned linearized D (1/1-D)

Value

  • A distance matrix with between-population values of D

References

Jost, L. (2008), GST and its relatives do not measure differentiation. Molecular Ecology, 17: 4015-4026.

See Also

Other D: D_Jost

Other pairwise: pairwise_Gst_Hedrick, pairwise_Gst_Nei

Examples

Run this code
data(nancycats)
pairwise_D(nancycats[1:26,])

Run the code above in your browser using DataLab