Learn R Programming

gap (version 1.3-1)

gsmr: 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)

Value

The result and plots.

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.

Examples

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

Run the code above in your browser using DataLab