strataG (version 2.4.905)

theta: 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?

Value

vector of theta values for each locus.

Details

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

Examples

Run this code
# NOT RUN {
data(msats.g)

theta(msats.g)

# }

Run the code above in your browser using DataCamp Workspace