Skip to contents

Estimate inflation of test statistics. Lambda GC compares the median test statistic against the expected median test statistic under the null hypothesis of no association. For well-powered quantitative traits with a known polygenic inheritance, we expect inflation of lambda GC, but for traits with no expected association, we expect lambda GC to be around 1.

Original function by Jing Hua Zhao (https://jinghuazhao.github.io/)

Usage

lambda_gc(p)

Arguments

p

a numeric vector of p-values

Value

Returns a vector

Author

Jing Hua Zhao

Examples

lambda_gc(gwas_example$P)
#> [1] 1.41112