Description Usage Arguments Details Value Examples
Compute R.squared and D.prime for two binary numeric vectors.
1 | compute_ld(x, y)
|
x |
a numeric vector of ones and zeros |
y |
a numeric vector of ones and zeros |
Find more details here: https://en.wikipedia.org/wiki/Linkage_disequilibrium
A list with two items:
Squared Pearson correlation coefficient.
Coefficient of linkage disequilibrium D divided by the theoretical maximum.
1 | compute_ld(c(0,0,0,1,1,1), c(1,1,1,1,0,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.