sh {Rhh} | R Documentation |
Calculate standardized heterozygosity.
sh(genotypes)
genotypes |
An array with each row representing an individual and every two columns representing genotype data for two alleles in a loci. |
Calculates standardized heterozygosity, a multilocus heterozygosity measure developed by Coltman et al. (1999), for each individual in the genotype data.
An array with standardized heterozygosity estimate for each individual. If the estimate could not be calculated for a given
individual, the corresponding value is NaN
.
The genotype data should be checked for problems with chkdata
before this function is used.
Coltman DW, Pilkington JG, Smith JA et al (1999) Parasite-mediated selection against inbred Soay sheep in a free-living island population. Evolution 53:1259-1267