ivw_mvmr | R Documentation |
Fits an IVW multivariable Mendelian randomization model using first order weights.
ivw_mvmr(r_input, gencov = 0)
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 |
An dataframe containing MVMR results, including estimated coefficients, their standard errors, t-statistics, and corresponding (two-sided) p-values.
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, 2019, 48, 3, 713-727. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/ije/dyy262")}
r_input <- format_mvmr(
BXGs = rawdat_mvmr[,c("LDL_beta","HDL_beta")],
BYG = rawdat_mvmr$SBP_beta,
seBXGs = rawdat_mvmr[,c("LDL_se","HDL_se")],
seBYG = rawdat_mvmr$SBP_se,
RSID = rawdat_mvmr$SNP)
ivw_mvmr(r_input)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.