compute_F4fromF2samples: compute_F4fromF2samples

compute_F4fromF2samplesR Documentation

compute_F4fromF2samples

Description

Compute all F4 from F2 values obtained from each block-jackknife bloc

Usage

.compute_F4fromF2samples(blockF2, npops, verbose)

Arguments

blockF2

Numeric Matrix with nF2=(npop*(npop-1))/2 rows and nblocks columns matrix containing pairwise-pop F2 estimates for each block-jackknife sample (l.o.o.)

npops

Integer giving the number of populations

verbose

Logical (if TRUE progression bar is printed on the terminal)

Details

Compute F4 estimates and their s.e. based on block-jackknife estimates of all F2 (and heterozygosities)

Value

Return a matrix with nF4=(npops*(npops-1)/2) * ((npops-2)*(npops-3)/2) / 2 rows and two columns corresponding to the mean and the s.e. of F4 estimates for all possible configurations

Examples

#

poolfstat documentation built on Sept. 8, 2023, 5:49 p.m.