Learn R Programming

poolABC (version 1.0.0)

baba: Calculate the baba portion of the D-statistic

Description

Computes the value for the ‘BABA’ allelic pattern.

Usage

baba(p1, p2, p3)

Value

a numeric vector with one value per site of the locus.

Arguments

p1

is a numeric vector with the allele frequencies for population 1. Each entry of the vector should be a different site.

p2

is a numeric vector with the allele frequencies for population 2. Each entry of the vector should be a different site.

p3

is a numeric vector with the allele frequencies for population 3. Each entry of the vector should be a different site.