R/rsq_liability.r
lor_to_rsq.Rd
This uses equation 10 in Genetic Epidemiology 36 : 214–224 (2012)
lor_to_rsq(b, af, ncase, ncontrol, prevalence, model = "logit")
Log odds ratio
allele frequency
Number of cases
number of controls
prevalence
Is the effect size estiamted in "logit" (default) or "probit" model
Rsq