Description Usage Arguments Details Value Examples
These functions calculate the variance explained on the liability scale by the genetic risk variants described by a MangroveORs
object.
1 2 | getVarExp(ORs, K)
getVarExpSim(ORs,K,iter=1000)
|
ORs |
An object of class |
K |
The prevalence of the disease. |
iter |
The number of individuals sampled for variance estimation. |
getVarExp
calculates the variance explained analytically, by converting the odds ratios to liability-scale units, and combining them together additively. getVarExpSim
simulates genotypes from the allele frequencies, performs risk prediction on them, converts the resulting posteriors to liabilities, and directly measures the variance of the sample.
The proportion of variance explained, as a single numeric value.
1 2 3 | data(exampleORs)
getVarExp(exampleORs,0.02)
getVarExpSim(exampleORs,0.02)
|
[1] 0.02438337
[1] 0.02387013
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.