He: Estimate expected heterozygosity

View source: R/he.R

HeR Documentation

Estimate expected heterozygosity

Description

Returns the general expected heterozygosity parameter from the frequencies

Usage

He(x, small.N = FALSE)

Arguments

x

Either a data.frame object with locus objects or a vector or locus objects.

small.N

Apply the 2N/(2N-1) correction to the data for small sample sizes.

Value

The expected heterozygosity as a numeric or a data.frame if several loci are passed.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

data(arapat)
He(arapat)
He(arapat, small.N = TRUE)

dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.