qpgraph_resample_multi | R Documentation |
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, ...)
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 |
A list of same length as graphlist
with data frames with qpgraph
results for each iteration of bootstrap resampled f2-statistics
compare_fits
## Not run:
fits = qpgraph_resample_multi(f2_blocks, list(graph1, graph2), nboot = 100)
compare_fits(fits[[1]]$score_test, fits[[2]]$score_test)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.