Genomic inflation factor

genomic_inflation(Z = NULL, P = NULL)

Arguments

Z

Numeric vector of arbitrary length. Z-statistics (sign does not matter)

P

Numeric vector of arbitrary length. Alternatively, the P-values can be provided, which will be transformed into Z-statistics

Value

value

Examples

## data("giant") genomic_inflation(Z = giant$BETA / giant$SE)
#> [1] 2.755839
## should give the same as genomic_inflation(P = giant$P)
#> [1] 2.788867