The xergm package implements eXtensions for Exponential Random Graph Models (ERGM), in particular temporal ERGMs via bootstrapped pseudolikelihood (btergm package) and the relational event model (rem package). It used to include generalized ERGMs for value-edged networks (GERGM package) and calculation of marginal effects for ERGMs (ergMargins package), but these packages were archived on CRAN. It also loads helper functions and datasets in the xergm.common package.