Coefficient to convert to the liability scale. E.g. h2_liab = coef * h2_obs.
coef_to_liab(K_pop, K_gwas = 0.5)
Prevalence in the population.
Prevalence in the GWAS. You should provide this if you used
n_case + n_control) as sample size. If using the effective sample size
4 / (1 / n_case + 1 / n_control) instead, you should keep the default
K_gwas = 0.5 as the GWAS case-control ascertainment is already
accounted for in the effective sample size.
Scaling coefficient to convert e.g. heritability to the liability scale.
h2 <- 0.2 h2 * coef_to_liab(0.02) #>  0.131095