Calculate the D, f4, f4-ratio, or f3 statistic.

f4ratio(data, X, A, B, C, O, outdir = NULL)

d(data, W, X, Y, Z, outdir = NULL, f4mode = FALSE)

f4(data, W, X, Y, Z, outdir = NULL)

f3(data, A, B, C, outdir = NULL, inbreed = FALSE)

Arguments

data

EIGENSTRAT data object.

outdir

Where to put all generated files (temporary directory by default).

W, X, Y, Z, A, B, C, O

Population names according to the nomenclature used in Patterson et al., 2012.

f4mode

Calculate the f4 statistic instead of the D statistic.

inbreed

See README.3PopTest in ADMIXTOOLS for an explanation.