Adjust the GWAS Z-statistic.
adjust_zstat( dat, drop_MHC = TRUE, method = "bonferroni", model = NULL, log_vars = c("NSNPS", "NPARAM", "GENELEN"), formula = ZSTAT ~ NSNPS + logNSNPS + NPARAM + logNPARAM + GENELEN + logGENELEN, verbose = TRUE, ... )
dat |
|
---|---|
drop_MHC | Drop genes from the MHC (Major Histocompatibility Complex) region. |
method | correction method, a |
model | Statistical model to use. Defaults to lm. |
log_vars | Variables to perform natural log transformation on first.
Only run on variables available in |
formula | Formula to use in |
... | Additional arguments passed to |
dat
with the new column "ADJ_ZSTAT".
Used when you want to directly analyse the gene-level Z-scores corrected for gene length, etc.