Learn R Programming

CAnD (version 1.4.0)

calc_combP: Calculate the Combined CAnD Test Statistic P-value

Description

Calculate the combined CAnD test statistic p-value on a set of ancestry proportions estimated for a particular ancestral subpopulation of interest

Usage

calc_combP(chrAncest)

Arguments

chrAncest
A data.frame holding the ancestral proportions; each row corresponds to a sample and each column corresponds to a chromosomal/chromosomal segment ancestry proportion. Note: only include the proportions for one ancestral population at a time.

Value

A vector of length two where `statistic' is the combined CAnD statistic and `pvalue' is it's corresponding p-value, where the combined statistic is combined over all chromosomes/chromosomal segments included in chrAncest.

References

McHugh, C., Brown, L., Thornton, T. Detecting heterogeneity in population structure across chromosomes in admixed populations. Manuscript in Preparation.

Examples

Run this code
data(ancestries)
euroCols <- grep("Euro",colnames(ancestries))
euro <- ancestries[,euroCols]
res <- calc_combP(euro)
res

Run the code above in your browser using DataLab