Description Usage Arguments Value Author(s) Examples
Estimates ancestry proportions in heterogeneous allele frequency data
1 |
data |
Dataframe: This dataframe should be in the format described in our data formatting document. |
k |
Vector of character strings: Column names of reference ancestries to be included in the model. |
t |
Character sting: column name of the observe ancestry. |
x0 |
Numeric vector: x_0 is the starting guess for the SLSQP algorithm. |
Estimated ancestry proportions
Gregory Matesi, gregory.matesi@ucdenver.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 | # load the data
data("ancestryData")
# Estimate 5 reference ancestry proportion values for the gnomAD african american ancestry group
# using a starting guess of .2 for each ancestry proportion.
ancestr( data = ancestryData,
k=c("ref_AF_afr_1000G",
"ref_AF_eur_1000G",
"ref_AF_sas_1000G",
"ref_AF_iam_1000G",
"ref_AF_eas_1000G"),
t="gnomAD_AF_afr",
x0 = c(.2, .2, .2, .2, .2) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.