Learn R Programming

mmod (version 0.2.1)

D_Jost: Calculate Jost's D

Description

This function calculates Jost's D from a genind object

Usage

D_Jost(x)

Arguments

x
genind object (from package adegenet)

Details

Takes a genind object with population information and calculates Jost's D Returns a list with values for each locus as well as two global estimates. 'global.het' uses the averages of Hs and Ht across all loci while 'global.harm_mean' takes the harmonic mean of all loci.

Because estimators of Hs and Ht are used, its possible to have negative estimates of D. You should treat these as numbers close to zero.

References

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

See Also

Other D: pairwise_D

Other diffstat: diff_stats, Gst_Hedrick, Gst_Nei

Examples

Run this code
data(nancycats)
D_Jost(nancycats)

Run the code above in your browser using DataLab