theta: Theta

View source: R/theta.R

thetaR Documentation

Theta

Description

Calculate theta from heterozygosity of each locus.

Usage

theta(g, by.strata = FALSE)

Arguments

g

a gtypes object.

by.strata

logical - return results grouped by strata?

Details

Calculates theta for each locus using the theta.h function.

Value

vector of theta values for each locus.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

data(msats.g)

theta(msats.g)


EricArcher/strataG documentation built on Feb. 12, 2023, 4:11 a.m.