Ho: Estimate observed heterozygosity Returns the general observed...

View source: R/ho.R

HoR Documentation

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

Description

Estimate observed heterozygosity

Returns the general observed heterozygosity parameter from the frequencies

Usage

Ho(x)

Arguments

x

An object of type locus

Value

The expected heterozygosity

Note

This function can be called on a single vector of data, a data.frame of loci, or a data.frame of locus objects across strata. If the estimating across stratum, the unbiased estimator should be used to average across stratum and is performed by passing the appropriate stratum= argument.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

loci <- c( locus( c("A","A") ), locus( c("A","A") ), locus( c("A","B") ) )
Ho( loci )

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