calc_eh: Calculate expected heterozygosity

Description Usage Arguments Value

Description

Calculates expected heterozygosity of markers given a matrix where rows are markers, and markers are haploid, encoded as 0 and 2

Usage

1
calc_eh(genotypes)

Arguments

genotypes

a matrix of haploid markers as rows with alleles encoded as 0 and 2

Value

a vector of expected heterozygosities of the markers


DiDeoxy/pgda documentation built on June 22, 2020, 7:15 a.m.