R: Mendelian randomization analysis

gsmr {gap} | R Documentation

## Mendelian randomization analysis

### Description

The function initially intends to rework on GSMR outputs, but it would be appropriate for general use.

### Usage

    gsmr(data, X, Y, alpha = 0.05, other_plots = FALSE)

### Arguments

`data` | Data to be used.
`X` | Exposure.
`Y` | Outcome.
`alpha` | type I error rate for confidence intervals.
`other_plots` | To add funnel and forest plots.

### Value

The result and plots.

### Examples

    library(cowplot)
    library(ggplot2)
    library(gap)
    r <- gsmr(mr, "LIF.R", c("CAD","FEV1"))

[Package gap version 1.2.3-6 Index]