resample_inds: Run models while leaving out individuals

resample_indsR Documentation

Run models while leaving out individuals

Description

These are wrapper functions around various qp functions, which will evaluate many models at once. The models are formed by leaving out every individual which belongs to a population with more than one sample, one at a time.

Usage

qp3pop_resample_inds(dir, inds, pops, verbose = TRUE, ...)

qpdstat_resample_inds(dir, inds, pops, verbose = TRUE, ...)

qpwave_resample_inds(dir, inds, pops, verbose = TRUE, ...)

qpadm_resample_inds(dir, inds, pops, verbose = TRUE, ...)

qpgraph_resample_inds(dir, inds, pops, verbose = TRUE, ...)

Arguments

dir

directory with precomputed data

inds

vector of individual names

pops

vector of population names. Should be the same length as inds

verbose

print progress updates

...

named arguments passed to the qp function.

Value

a nested data frame where each model is a row, and the columns are model parameters and model outputs

Examples

## Not run: 
res = qpadm_resample_inds
unnest(res, weights)

## End(Not run)

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