This function is used in combination with compare_fits
in order to test whether one graph has a significantly better fit than another. It creates bootstrap resampled SNP block training and test sets, and uses them to evaluate multiple graphs.
qpgraph_resample_multi(f2_blocks, graphlist, nboot, verbose = TRUE, ...)
3d array of f2-statistics
A list of admixture graphs
Number of bootstrap iterations
Print progress updates
Arguments passed to qpgraph
A list of same length as graphlist
with data frames with qpgraph
results for each iteration of bootstrap resampled f2-statistics
if (FALSE) {
fits = qpgraph_resample_multi(f2_blocks, list(graph1, graph2), nboot = 100)
compare_fits(fits[[1]]$score_test, fits[[2]]$score_test)
}