Learn R Programming

mmod (version 1.3.2)

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, hsht_mean = "arithmetic")

Arguments

x
genind object (from package adegenet)
linearized
logical, if TRUE will turned linearized D (1/1-D)
hsht_mean
type of mean to use for the global estimates of Hs and Ht default it "arithmetic", can also be set to "harmonic".

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