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, ...)

Arguments

f2_blocks

3d array of f2-statistics

graphlist

A list of admixture graphs

nboot

Number of bootstrap iterations

verbose

Print progress updates

...

Arguments passed to qpgraph

Value

A list of same length as graphlist with data frames with qpgraph results for each iteration of bootstrap resampled f2-statistics

See also

Examples

if (FALSE) {
fits = qpgraph_resample_multi(f2_blocks, list(graph1, graph2), nboot = 100)
compare_fits(fits[[1]]$score_test, fits[[2]]$score_test)
}