Mr.raps
R package for two-sample Mendelian randomization using the robust adjusted profile score
Install / Use
/learn @qingyuanzhao/Mr.rapsREADME
MR.RAPS: Robust statistical inference for Mendelian randomization with many weak instruments
Setup
mr.raps is an R package for two-sample summary-data Mendelian randomization using the robust adjusted profile score (MR-RAPS). To install the most up-to-date version, run the following command in R
library(devtools)
install_github("qingyuanzhao/mr.raps")
The CRAN version of this package is currently not being maintained.
Examples
The main function is mr.raps. You can find examples by running
library(mr.raps)
example(mr.raps) ## Recommended procedure
example(mr.raps.shrinkage) ## General function for empirical partially Bayes estimator
A more in-depth real-data example can be found here.
Updates
In May 2018, a new general function mr.raps.shrinkage is added. You can choose whether weight shrinkage should be used by the option shrinkage. You can still use the original MR-RAPS procedure using the function mr.raps.mle, which usually gives similar results as setting shrinkage = FALSE in mr.raps.shrinkage.
We are updating the multivariate branch to accomdate multivariable MR and sample overlap.
Getting help
More information (including references and tutorials on Mendelian randomization) can be found on this webpage.
Please report issues and suggestions on the software using the GitHub issues tracker.
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
