simstat_once: Simulate Admixture Mapping Test Statistics

Description Usage Arguments Value Examples

View source: R/simstat_once.R

Description

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

Usage

1
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

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

GrindeLab/STEAMcpp_mirror documentation built on Dec. 31, 2020, 12:05 p.m.