qpgraph_resample_multi: Evaluate a qpgraph models many times

qpgraph_resample_multiR Documentation

Evaluate a qpgraph models many times

Description

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.

Usage

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

compare_fits

Examples

## 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)

uqrmaie1/admixtools documentation built on Nov. 3, 2024, 12:56 a.m.