theta.Watt.dosage: Estimates theta_{Watterson} from dosage data

View source: R/div_dosage.R

theta.Watt.dosageR Documentation

Estimates θ_{Watterson} from dosage data

Description

Estimates θ_{Watterson}=S/a, where S is the number of segregating sites in a set of sequences and a=1/∑_i^{n-1} i.

Usage

theta.Watt.dosage(dos,L=NULL)

Arguments

dos

a ni X nl dosage matrix containing the number of derived/alternate alleles each individual carries at each SNP

L

the length of the sequence

Value

if L=NULL (default), returns θ_{Watterson}, else return θ_{Watterson}/L


hierfstat documentation built on May 6, 2022, 1:05 a.m.