R/Hs.r

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.
alj1983/DEMEtics documentation built on May 28, 2019, 11:23 a.m.