Contact: cbpeterson@gmail.com
The given Matlab files for Bayesian inference of multiple graphical models are associated with the following publication:
Peterson, C., Stingo, F. and Vannucci, M. (2015). Bayesian inference of multiple Gaussian graphical models. Journal of the American Statistical Association. 110(509): 159—174.
These scripts rely on the Matlab code for G-Wishart sampling by Hao Wang associated with the following publication: Wang, H. and Li, S. (2012). Efficient Gaussian graphical model determination under G-Wishart prior distributions. Electronic Journal of Statistics. 6: 168—198.
Please cite both publications if you use this code. Thanks!
Basic example of running MCMC sampler and generating results summaries on a simple setting with 3 groups with identical dependence structure
Code for running MCMC sampler
Helper function for calculating normalizing constant for MRF prior
Script to generate matrices similar to those used as input to Simulation 1
Helper function to ensure that the random matrices generated as simulation input are in fact positive definite
Please also see here for a more scalable approach.