Probabilistic Two Sample Mendelian Randomization

Efficient statistical inference of two-sample MR (Mendelian Randomization) analysis. It can account for the correlated instruments and the horizontal pleiotropy, and can provide the accurate estimates of both causal effect and horizontal pleiotropy effect as well as the two corresponding p-values. There are two main functions in the 'PPMR' package. One is PMR_individual() for individual level data, the other is PMR_summary() for summary data.


PPMR

PPMR (Probalistic polygenic two sample mendelian randomization), is an efficient R package for two sample MR analysis, accounting for the correlatded instruments and the horizontal pleiotropy. PPMR can provide the estimate of causal effect, the estimates of horizontal pleitropy, and the two corresponding p values.

Installation

It is easy to install the development version of PPMR package using the 'devtools' package. The typical install time on a "normal" desktop computer is less than one minute.

# install.packages("devtools")
library(devtools)
install_github("yuanzhongshang/PPMR")

Usage

The main functions is PMR_individual for individual level data, and PMR_summary for summary data. You can find the instructions by '?PMR_individual' and '?PMR_summary'.

library(PPMR)

?PMR_individual

?PMR_summary

Example

One simple example to use the package can be found at https://github.com/yuanzhongshang/PPMR/tree/master/example

Results reproduced

All results from all methods used in the PPMR paper can be reproduced at https://github.com/yuanzhongshang/PPMRreproduce

Development

This R package is developed by Zhongshang Yuan and Xiang Zhou.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("PPMR")

1.0.1 by Michael Kleinsasser, a year ago


Report a bug at https://github.com/umich-biostatistics/PPMR/issues


Browse source code at https://github.com/cran/PPMR


Authors: Zhongshang Yuan [aut] , Xiang Zhou [aut] , Michael Kleinsasser [cre]


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp

Linking to Rcpp, RcppArmadillo


See at CRAN