hh {Rhh} | R Documentation |
Get a sample of heterozygosity-heterozygosity correlations
hh(genotypes, n, method)
genotypes |
An array with each row representing an individual and every two columns representing genotype data for two alleles in a loci |
n |
Number of randomizations |
method |
Multilocus heterozygosity measure to use: "hl" for homozygosity by loci, "ir" for internal relatedness and "sh" for stardardized heterozygosity |
Returns an array of heterozygosity-heterozygosity correlations computed by randomly dividing the markers into two groups and calculating the chosen estimate of individual multilocus heterozygosity for the two set of loci.
The genotype data should be checked for problems with chkdata
before this function is used.
chkdata
, hl
, ir
, sh
, mlh
and h_cor