baba {poolABC}R Documentation

Calculate the baba portion of the D-statistic

Description

Computes the value for the ‘BABA’ allelic pattern.

Usage

baba(p1, p2, p3)

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.

Value

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


[Package poolABC version 1.0.0 Index]