Package: MR.RGM
Title: Fitting Multivariate Bidirectional Mendelian Randomization
        Networks Using Bayesian Directed Cyclic Graphical Models
Version: 0.1.0
Authors@R: 
    c(person("Bitan", "Sarkar", email = "bitan@tamu.edu", role = c("aut", "cre")), person("Yang", "Ni", email = "yang.ni@austin.utexas.edu", role = "aut"))
Description: Addressing a central challenge encountered in Mendelian randomization (MR) studies, where MR primarily focuses on discerning the effects of individual exposures on specific outcomes and establishes causal links between them. Using a network-based methodology, the intricacy involving interdependent outcomes due to numerous factors has been tackled through this routine. Based on Ni et al. (2018) <doi:10.1214/17-BA1087>, 'MR.RGM' extends to a broader exploration of the causal landscape by leveraging on network structures and involves the construction of causal graphs that capture interactions between response variables and consequently between responses and instrument variables. The resulting Graph visually represents these causal connections, showing directed edges with effect sizes labeled. 'MR.RGM' facilitates the navigation of various data availability scenarios effectively by accommodating three input formats, i.e., individual-level data and two types of summary-level data. The method also optionally incorporates measured covariates (when available) and allows flexible modeling of the error variance structure, including correlated errors that may reflect unmeasured confounding among responses. In the process, causal effects, adjacency matrices, and other essential parameters of the complex biological networks, are estimated. Besides, 'MR.RGM' provides uncertainty quantification for specific network structures among response variables. Parts of the Inverse Wishart sampler are adapted from the econ722 repository by DiTraglia (GPL-2.0).
License: GPL (>= 3)
Encoding: UTF-8
RoxygenNote: 7.3.3
URL: https://github.com/bitansa/MR.RGM
BugReports: https://github.com/bitansa/MR.RGM/issues
Imports: Rcpp, stats, igraph, GIGrvg
Suggests: MASS
LinkingTo: Rcpp, RcppArmadillo, RcppDist, GIGrvg
NeedsCompilation: yes
Packaged: 2026-01-22 06:00:38 UTC; bitansarkar
Author: Bitan Sarkar [aut, cre],
  Yang Ni [aut]
Maintainer: Bitan Sarkar <bitan@tamu.edu>
Repository: CRAN
Date/Publication: 2026-01-22 08:00:02 UTC
Built: R 4.6.0; x86_64-w64-mingw32; 2026-03-03 03:16:31 UTC; windows
Archs: x64
