View source: R/rsq_liability.r
lor_to_rsq | R Documentation |
This uses equation 10 in Genetic Epidemiology 36 : 214–224 (2012)
lor_to_rsq(b, af, ncase, ncontrol, prevalence, model = "logit")
b |
Log odds ratio |
af |
allele frequency |
ncase |
Number of cases |
ncontrol |
number of controls |
prevalence |
prevalence |
model |
Is the effect size estiamted in "logit" (default) or "probit" model |
Rsq
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.