mv_residual: Perform basic multivariable MR

View source: R/multivariable_mr.R

mv_residualR Documentation

Perform basic multivariable MR

Description

Performs initial multivariable MR analysis from Burgess et al 2015. For each exposure the outcome is residualised for all the other exposures, then unweighted regression is applied.

Usage

mv_residual(
  mvdat,
  intercept = FALSE,
  instrument_specific = FALSE,
  pval_threshold = 5e-08,
  plots = FALSE
)

Arguments

mvdat

Output from mv_harmonise_data().

intercept

Should the intercept by estimated (TRUE) or force line through the origin (FALSE, default).

instrument_specific

Should the estimate for each exposure be obtained by using all instruments from all exposures (FALSE, default) or by using only the instruments specific to each exposure (TRUE).

pval_threshold

P-value threshold to include instruments. The default is 5e-8.

plots

Create plots? The default is FALSE.

Value

List of results


MRCIEU/TwoSampleMR documentation built on Sept. 28, 2024, 6:51 p.m.