Learn R Programming

bigsnpr (version 1.9.11)

coef_to_liab: Liability scale

Description

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

Usage

coef_to_liab(K_pop, K_gwas = 0.5)

Value

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

Arguments

K_pop

Prevalence in the population.

K_gwas

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.

Examples

Run this code
h2 <- 0.2
h2 * coef_to_liab(0.02)

Run the code above in your browser using DataLab