abba: Calculate the abba portion of the D-statistic

View source: R/functions_sumstats.R

abbaR Documentation

Calculate the abba portion of the D-statistic

Description

Computes the value for the ‘ABBA’ allelic pattern.

Usage

abba(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.


poolABC documentation built on Aug. 8, 2023, 5:14 p.m.