Hos: Estimate observed heterozygosity corrected for sample size...

Description Usage Arguments Value Note Author(s) Examples

View source: R/hos.R

Description

Estimate observed heterozygosity corrected for sample size after Nei

Returns the general observed heterozygosity parameter from the frequencies

Usage

1
Hos(x, stratum = "Population")

Arguments

x

An object of type locus

stratum

A flag indicating that you want to estimate Nei's unbiased Ho across sampling locations.

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

1
2
3
4
data(arapat)
Hos(arapat)
loci <- c( locus( c("A","A") ), locus( c("A","A") ), locus( c("A","B") ) )
Hos( loci )

MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.