R/Hs.r

Defines functions Hs

Hs<-function(Hj){

#Variables
#------------------------------------------------------------------------------------------------------------------------------
# Input:
#           Hj <- Dest.calc(), Gst.est.calc()
#------------------------------------------------------------------------------------------------------------------------------  

          # A function to calculate the mean heterozygosity within subpopulations.
          # The argument is a vector that contains the heterozygosities within the
          # several subpopulations. 

                  mean(Hj)
                }

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

Try the DEMEtics package in your browser

Any scripts or data that you put into this service are public.

DEMEtics documentation built on May 1, 2019, 10:09 p.m.