f_stat: Compute Reich's f-statistics

Description Usage Arguments

Description

Computes f2, f3, and f4 statistics unbiased estimateve used to measure populations strutcture and treeness as described by Reich et al. 2009. The f-statistic are described the following statistics:

F4(W, X; Y,Z) = E[(W - X) * (Y - Z)]

F3(W; X, Y) = E[(W - X) * (W - Y)]

F2(X, Y) = E[(X - Y)^2]

Usage

1
2
3
4
5
f4_stat(ac, pops)

f3_stat(ac, pops)

f2_stat(ac, pops)

Arguments

ac

A allele count matrix including the populations to investigate.

pops

A vector of populations to compute the statistic.


andremrsantos/htspop documentation built on May 14, 2020, 11:40 a.m.