Description Usage Arguments Value Author(s) References Examples
View source: R/pleiotropy_mvmr.R
Calculates modified form of Cochran's Q statistic measuring heterogeneity in causal effect estimates obtained using each genetic variant. Observed heterogeneity is indicative of a violation of the exclusion restriction assumption in MR (validity), which can result in biased effect estimates.
The function takes a formatted dataframe as an input, obtained using the function format_mvmr
. Additionally, covariance matrices
for estimated effects of individual genetic variants on each exposure can also be provided. These can be estimated using external data by
applying the snpcov_mvmr
or phenocov_mvmr
functions, are input manually. The function returns a dataframe including the conditional
Q-statistic for instrument validity, and a corresponding P-value.
1 | pleiotropy_mvmr(r_input, gencov)
|
r_input |
r_input A formatted data frame using the |
gencov |
Calculating heterogeneity statistics requires the covariance between the effect of the genetic variants on each exposure to be known. This can either be estimated from individual level data, be assumed to be zero, or fixed at zero using non-overlapping samples of each exposure GWAS. A value of |
A Q-statistic for instrument validity and the corresponding p-value
Wes Spiller; Eleanor Sanderson; Jack Bowden.
Sanderson, E., et al., An examination of multivariable Mendelian randomization in the single-sample and two-sample summary data settings. International Journal of Epidemiology, 2018. [Internet]. 2018;dyy262. Available from: https://dx.doi.org/10.1093/ije/dyy262
1 | pleiotropy_mvmr(data,covariances)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.