rgm is an R package that implements state-of-the-artRandom Graphical Models (RGMs) for the analysis of complex multivariatedata. It is able to handle heterogeneous data across variousenvironments, offering a powerful tool for exploring intricate networkinteractions and structural relationships.
rgm enables simultaneous analysis of multivariate data fromdiverse environments, providing a comprehensive understanding of complexnetwork interactions.rgm uses aBayesian approach to quantify parameter uncertainty, includinguncertainty on the inferred graphs.Install the latest version ofrgm from GitHub using thefollowing commands in R:
install.packages("devtools")devtools::install_github("franciscorichter/rgm",build_vignette=TRUE)For detailed instructions on usingrgm for dataanalysis, refer to the package vignette and documentation:
library(rgm)vignette("rgm")Note: While initially designed for microbiomeanalysis,rgm is broadly applicable across various fieldsrequiring advanced graphical modeling of multivariate data from multipleenvironments.
The methodologies implemented in the rgm package are principallyderived from the work described in Vinciotti, V., Wit, E., &Richter, F. (2023). “Random Graphical Model of Microbiome Interactionsin Related Environments.” arXiv preprint arXiv:2304.01956.