mr_loo: Leave-one-out estimates

mr_looR Documentation

Leave-one-out estimates

Description

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.

Usage

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)


MendelianRandomization documentation built on Aug. 9, 2023, 1:05 a.m.