mr_loo function

Leave-one-out estimates

Leave-one-out estimates

The mr_loo function draws a forest plot of causal estimates from the mr_ivw function using default settings (assuming variants are uncorrelated, random-effects for 4+ variants) omitting each variant in turn. So the estimate labelled snp_1 includes all variants except the labelled variant, and so on. The mr_ivw estimate including all variants ("IVW estimate") is also provided for reference. methods

mr_loo(object, alpha = 0.05) ## S4 method for signature 'MRInput' mr_loo(object, alpha = 0.05)

Arguments

  • object: An MRInput object.
  • alpha: The significance level used to calculate the confidence intervals. The default value is 0.05, corresponding to 95% confidence intervals.

Details

As the function produces a ggplot object, graphical parameters can be changed by adding commands from the ggplot2 package.

Examples

mr_loo(mr_input(bx = ldlc, bxse = ldlcse, by = chdlodds, byse = chdloddsse), alpha = 0.01)
  • Maintainer: Stephen Burgess
  • License: GPL-2 | GPL-3
  • Last published: 2024-04-12

Useful links