Models target as a mixture of left populations, given a set of outgroup right populations. Can be used to estimate admixture proportions, and to estimate the number of independent admixture events.
Left populations (sources)
Right populations (outgroups)
Target population
Value added to diagonal matrix elements before inverting
If FALSE
(the default), block-jackknife resampling will be used to compute standard errors.
Otherwise, block-bootstrap resampling will be used to compute standard errors. If boot
is an integer, that number
will specify the number of bootstrap resamplings. If boot = TRUE
, the number of bootstrap resamplings will be
equal to the number of SNP blocks.
Constrain admixture weights to be non-negative
Rank of f4-matrix. Defaults to one less than full rank.
Use C++ functions. Setting this to FALSE
will be slower but can help with debugging.
Return weights (default = FALSE
)
Instead of f2 blocks, f4 blocks can be supplied. This is used by qpadm_multi
Data frame with f4rank
, dof
, chisq
, p
, feasible
left = c('Altai_Neanderthal.DG', 'Vindija.DG')
right = c('Chimp.REF', 'Mbuti.DG', 'Russia_Ust_Ishim.DG', 'Switzerland_Bichon.SG')
target = 'Denisova.DG'
qpadm_p(example_f2_blocks, left, right, target)
#> # A tibble: 1 × 5
#> f4rank dof chisq p feasible
#> <dbl> <dbl> <dbl> <dbl> <lgl>
#> 1 1 2 7.15 0.0280 FALSE