Description Usage Arguments Value
This function can be used for ancestry analysis when frequency matrix is fixed.
1 | fFixBr(gnew, qnew, f, acc, max.iter, tol, pubdata)
|
gnew |
Genotype matrix. The number of row present in gnew is 1 and the number of column is the number of SNPs. |
qnew |
Initial q used in calculation. A vector. Sum(q) must be 1. |
f |
Allele frequencies matrix learned from the reference panels. |
acc |
a logical value indicating whether use quasi-Newton accelerated BR or not. |
max.iter |
If acc = T, max.iter must be set, the default is 3. max.iter should greater than 1. |
tol |
If acc = F, tolerance must be set, the default is 1e-4. |
pubdata |
You can choose a public dataset here, E11, K13, K4, K12b, K7b, World9. You also can use other public dataset which is not in this package. |
Estimation results of q and the loglikelihood value of each iteration.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.