exp_corr: Expected Local Ancestry Correlation

View source: R/exp_corr.R

exp_corrR Documentation

Expected Local Ancestry Correlation

Description

Calculate expected correlation in local ancestry components at a pair of loci, based on Lemma 1 in Grinde et al. (TBD).

Usage

exp_corr(theta, g, props, k1, k2)

Arguments

theta

recombination fraction between pair of loci

g

generations since admixture

props

data frame (n x K) of admixture proportions

k1, k2

component indices

Value

A single number indicating the correlation of local ancestry.

Examples

exp_corr(theta = 0.2, g = 6, props = example_props, k1 = 1, k2 = 1)
exp_corr(theta = 0.2, g = 6, props = example_props, k1 = 1, k2 = 2)


kegrinde/STEAM documentation built on June 30, 2024, 11:27 p.m.