mr_funnel function

Draw a funnel plot of variant-specific estimates

Draw a funnel plot of variant-specific estimates

The mr_funnel function draws a funnel plot of variant-specific causal estimates. Estimates (by/bx) are plotted against the precision of the estimates (abs(bx)/byse). Precision is the reciprocal of standard error. A vertical dashed line is plotted at the estimate from the mr_ivw function. methods

mr_funnel(object, CI = TRUE) ## S4 method for signature 'MRInput' mr_funnel(object, CI = TRUE)

Arguments

  • object: An MRInput object.
  • CI: A logical variable dicating as to whether to plot the confidence interval associated with each point. Default value is TRUE.

Details

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

Examples

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

Useful links