Learn R Programming

DEMEtics (version 0.8.1)

Hs: Mean Heterozygosity within Populations

Description

This function calculates the arithmetic mean heterozygosity over all subpopulations according to Jost (2008, p. 4022).

Usage

Hs(Hj)

Arguments

Hj
A vector that contains the heterozygosities found within the sampled populations. This vector can be obtained easily by using the function Hj that is included in this package.

Value

  • The mean value over all within population heterozygosities ('Hs') is returned.

References

Jost, L. 2008 Gst and its relatives do not measure differentiation. Molecular Ecology 17, 18, p. 4015--4026

See Also

Hj, all.pops.D, all.pops.Dest, all.pops.Dest.Chao, all.pops.Gst, all.pops.Gst.est, pair.pops.D, pair.pops.Dest, pair.pops.Dest.Chao, pair.pops.Gst, pair.pops.Gst.est

Examples

Run this code
Hj.values <- c(0.61,0.42,0.53,0.57)
# This vector contains the mean
# heterozygosities within 4 different populations
Hs(Hj.values)

Hs

Run the code above in your browser using DataLab