Coefficient to convert to the liability scale. E.g. h2_liab = coef * h2_obs.

coef_to_liab(K_pop, K_gwas = 0.5)

## Arguments

K_pop 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 value of K_gwas = 0.5 as the GWAS case-control ascertainment is already accounted for in the effective sample size.

## Value

Scaling coefficient to convert e.g. heritability to the liability scale.

## Examples

h2 <- 0.2
h2 * coef_to_liab(0.02)
#> [1] 0.131095