D.stat: calculate D-statistic

View source: R/functions_sumstats.R

D.statR Documentation

calculate D-statistic

Description

Computes the value of the D-statistic given the values of the two particular allelic patterns.

Usage

D.stat(ABBA, BABA)

Arguments

ABBA

is a numeric vector with the values for the ‘ABBA’ allelic pattern.

BABA

is a numeric vector with the values for the ‘BABA’ allelic pattern.

Value

a numeric value representing the D-statistic value for a particular conformation of the populations.


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