computeQ: Compute the conditional Q-statistic for assessing instrument...

View source: R/Q_statistics.R

computeQR Documentation

Compute the conditional Q-statistic for assessing instrument strength

Description

Compute the conditional Q-statistic for assessing instrument strength

Usage

computeQ(dat.list, p.thres = NULL)

Arguments

dat.list

Object returned from getInput

p.thres

The p-value threshold for SNP selection. The SNPs whose selection_pvals are less than p.thres are selected. The default value is NULL, which is to include all SNPs in data. If it is not NULL, then data should have a column selection_pvals that stores the selection p-value of each SNP.

Value

The conditional Q-statistics, degrees of freedom, and the corresponding p-values

References

Eleanor Sanderson, George Davey Smith, Frank Windmeijer, Jack Bowden, An examination of multivariable Mendelian randomization in the single-sample and two-sample summary data settings, International Journal of Epidemiology, Volume 48, Issue 3, June 2019, Pages 713–727, https://doi.org/10.1093/ije/dyy262.


jingshuw/GRAPPLE-beta- documentation built on March 29, 2024, 1:26 p.m.