Hes: Estimate expected heterozygosity Returns the general expected...

View source: R/hes.R

HesR Documentation

Estimate expected heterozygosity Returns the general expected heterozygosity parameter from the frequencies

Description

Estimate expected heterozygosity

Returns the general expected heterozygosity parameter from the frequencies

Usage

Hes(x, stratum = "Population", small.N = FALSE)

Arguments

x

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

stratum

This optional argument makes He estimate Nei's Hs parameter taking into consideration population subdivision. This is an unbiased estimator.

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)
Hes( arapat )

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