simstat_once: Simulate Admixture Mapping Test Statistics

View source: R/simstat_once.R

simstat_onceR Documentation

Simulate Admixture Mapping Test Statistics

Description

Simulate admixture mapping test statistics (one time) from their joint asymptotic distribution under the null (see Grinde et al., 2018).

Usage

simstat_once(m, K, as, bs, L)

Arguments

m

the number of markers.

K

the number of ancestral populations

as

vector of scalars (length m) based on generations since admixture and distance between markers.

bs

vector of scalars (length m) based on generations since admixture and distance between markers.

L

matrix (K x K-1) that is square root of correlation matrix at single locus

Value

A single nummber indicating the largest simulated test statistic.

Examples

simstat_once(m = 2, K = 2, as = example_ab$a, bs = example_ab$b, L = example_L)


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