This function is used in combination with compare_fits in order to test whether one graph has a significantly better fit than another. using a list of bootstrap resampled f2-statistics and corresponding test-set f2-statistics

qpgraph_resample_snps2(f2_blocks, graph, f2_blocks_test, verbose = TRUE, ...)

Arguments

f2_blocks

A list of bootstrap resampled f2-statistics

graph

An admixture graph

f2_blocks_test

A list of f2-statistics from all blocks which were not used in the corresponding f2-array in f2_blocks

verbose

Print progress updates

...

Arguments passed to qpgraph

Value

A data frame with qpgraph results for each iteration of bootstrap resampled f2-statistics