suppressPackageStartupMessages(library(knitr))
suppressPackageStartupMessages(library(Cairo))
opts_chunk$set(warning=FALSE, echo=FALSE, message=FALSE, results='asis', fig.width=6, fig.height=6, dev="png", fig.path=paste0('figure/', sanitise_string(title)))

Two sample MR report


r title

Date: r format(Sys.time(), '%d %B, %Y')


Results from two sample MR:

kable(tablist$mr, row.names=FALSE)

Heterogeneity tests

kable(tablist$mr_heterogeneity, row.names=FALSE)

Test for directional horizontal pleiotropy

kable(tablist$mr_pleiotropy_test, row.names=FALSE)

Test that the exposure is upstream of the outcome

kable(tablist$directionality_test, row.names=FALSE)

Note - R^2 values are approximate


Forest plot of single SNP MR

plotlist$mr_forest_plot

Comparison of results using different MR methods

plotlist$mr_scatter_plot

Funnel plot

plotlist$mr_funnel_plot

Leave-one-out sensitivity analysis

plotlist$mr_leaveoneout_plot


MRCIEU/TwoSampleMR documentation built on July 2, 2024, 8:46 p.m.