Learn R Programming

poolfstat (version 2.2.0)

compute_F3fromF2: compute_F3fromF2

Description

Compute all F3 from overall F2 values

Usage

.compute_F3fromF2(F2val, Hval, npops)

Value

Return a matrix of length nF3=npops*(npops-1)*(npops-2)/2 rows and 2 columns corresponding to the F3 and F3star estimates

Arguments

F2val

Numeric vector of length nF2=(npop*(npop-1))/2 with all pairwise F2 estimates

Hval

Numeric vector of length npop with all within pop heterozygosity estimates

npops

Integer giving the number of populations

Details

Compute F3 and F3star estimates from F2 (and heterozygosities)

Examples

Run this code
#

Run the code above in your browser using DataLab