Creates random dosages from genotypes using fast binary search for r-squared. It will result in approximately correct r-squared.
1 | sampleDosages(genotypes, info, epsilon = 0.01)
|
genotypes |
a vector of numeric genotypes (0,1,2) |
info |
Desired R^2 correlation between dosages and genotypes |
epsilon |
A halting parameter: When the total absolute difference between desired and obtained R^2 reaches epsilon the dosages are returned. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.