lor_to_rsq: Estimate proportion of variance of liability explained by SNP...

View source: R/rsq_liability.r

lor_to_rsqR Documentation

Estimate proportion of variance of liability explained by SNP in general population

Description

This uses equation 10 in Genetic Epidemiology 36 : 214–224 (2012)

Usage

lor_to_rsq(b, af, ncase, ncontrol, prevalence, model = "logit")

Arguments

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

Value

Rsq


explodecomputer/simulateGP documentation built on April 3, 2024, 2:38 a.m.