axials_combine: Combine axial distributions to produce a mixed distribution

Description Usage Arguments Value Examples

View source: R/axial_helper_functions.R

Description

combines axial distributions to produce a mixed distribution. This is useful in settings where you have two separate distributions (e.g. FS & HS) with their own axial values, but you want to average them appropriately so that they can be compared to e.g. a mixed distribution of full & half cousins which cannot be distinguished via kinship determination methods and thus are best treated as an even mixture of the two categories. Different to adding dispersal events.

Usage

1

Arguments

axvals

numeric. vector of axial distribution values from different kernels that are to be combined

Value

numeric Returns the axial value that results from combining the input axial values under an additive variance framework.

Examples

1
2
3
fullax <- axials(c(2, 4, 5), composite = 2)
halfax <- axials(c(6, 5, 7), composite = 2)
sibax <- axials_combine(c(fullax, halfax))

kindisperse documentation built on July 28, 2021, 5:09 p.m.