ivw_mvmr: ivw_mvmr

Description Usage Arguments Value Author(s) References Examples

View source: R/ivw_mvmr.R

Description

Fits an IVW multivariable Mendelian randomization model using first order weights.

Usage

1
ivw_mvmr(r_input, gencov)

Arguments

r_input

A formatted data frame using the format_mvmr function.

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 0 is used by default.

Value

An dataframe containing MVMR results, including estimated coefficients, their standard errors, t-statistics, and corresponding (two-sided) p-values.

Author(s)

Wes Spiller; Eleanor Sanderson; Jack Bowden.

References

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

Examples

1
ivw_mvmr(r_input)

WSpiller/MRPracticals documentation built on April 25, 2020, 10:52 a.m.