The Bergm package for R (available on CRAN: and GitHub: provides a comprehensive framework for Bayesian parameter estimation and model selection for exponential random graph models using advanced computational algorithms. It can also supply graphical Bayesian goodness-of-fit procedures that address the issue of model adequacy.

Citing Bergm

If you are using the Bergm package for research that will be published or otherwise publicly distributed, we request that you acknowledge this with the following citation:

Alberto Caimo, Nial Friel (2014). Bergm: Bayesian Exponential Random Graphs in R. Journal of Statistical Software, 61(2), 1-25. doi:

A BibTeX entry for LaTeX users is:

    title = {{Bergm}: {B}ayesian Exponential Random Graphs in {R}},
    author = {Alberto Caimo and Nial Friel},
    journal = {Journal of Statistical Software},
    year = {2014},
    volume = {61},
    number = {2},
    pages = {1--25},
    url = {},