Learn R Programming

⚠️There's a newer version (4.7.1) of this package.Take me there.

ergm: Fit, Simulate and Diagnose Exponential-Family Models for Networks

An integrated set of tools to analyze and simulate networks based on exponential-family random graph models (ERGMs). 'ergm' is a part of the Statnet suite of packages for network analysis.

Public and Private repositories

To facilitate open development of the package while giving the core developers an opportunity to publish on their developments before opening them up for general use, this project comprises two repositories:

  • A public repository statnet/ergm
  • A private repository statnet/ergm-private

The intention is that all developments in statnet/ergm-private will eventually make their way into statnet/ergm and onto CRAN.

Developers and Contributing Users to the Statnet Project should read https://statnet.github.io/private/ for information about the relationship between the public and the private repository and the workflows involved.

Copy Link

Version

Install

install.packages('ergm')

Monthly Downloads

8,993

Version

3.9.4

License

GPL-3 + file LICENSE

Last Published

August 16th, 2018

Functions in ergm (3.9.4)

ergm-deprecated

Functions that will no longer be supported in future releases of the package
ergm-errors

Sensible error and warning messages by ergm initializers
ergm_MCMC_sample

Internal Function to Sample Networks and Network Statistics
control.ergm.bridge

Auxiliary for Controlling ergm.bridge
fix.curved

Convert a curved ERGM into a corresponding "fixed" ERGM.
ergm_model

Internal representation of an ergm network model
florentine

Florentine Family Marriage and Business Ties Data as a "network" object
control.ergm.godfather

control.san

Auxiliary for Controlling SAN
mcmc.diagnostics

Conduct MCMC diagnostics on a model fit
control.simulate.ergm

Auxiliary for Controlling ERGM Simulation
as.rlebdm.ergm_conlist

as.network.numeric

Create a Simple Random network of a Given Size
empty_network

Create an empty copy of a network object
molecule

Synthetic network with 20 nodes and 28 edges
ergm-parallel

ergm-proposals

Metropolis-Hastings Proposal Methods for ERGM MCMC
rlebdm

RLE-Compressed Boolean Dyad Matrix
enformulate.curved

Convert a curved ERGM into a form suitable as initial values for the same ergm.
ergm

Exponential-Family Random Graph Models
ergm.allstats

Calculate all possible vectors of statistics on a network for an ERGM
ergm.degeneracy

Checks an ergm Object for Degeneracy
ergm.bounddeg

Initializes the parameters to bound degree during sampling
samplk

Longitudinal networks of positive affection within a monastery as a "network" object
ergm.bridge.llr

Bridge sampling to evaluate ERGM log-likelihoods and log-likelihood ratios
ergm.estfun

Compute the Sample Estimating Function Values of an ERGM.
ergm_proposal_table

Table mapping reference,constraints, etc. to ERGM Metropolis-Hastings proposals
ergmMPLE

ERGM Predictors and response for logistic regression calculation of MPLE
ergm_Clist

Internal Functions to Prepare Data for ergm's C Interface
spectrum0.mvar

sampson

Cumulative network of positive affection within a monastery as a "network" object
approx.hotelling.diff.test

Approximate Hotelling T^2-Test for One Sample Means
san

Use Simulated Annealing to attempt to match a network to a vector of mean statistics
as.edgelist

Convert a network object into a numeric edgelist matrix
ergm-internal

Internal ergm Objects
ergm-package

Fit, Simulate and Diagnose Exponential-Family Models for Networks
ergm.godfather

A function to apply a given series of changes to a network.
ergm.mple

Find a maximizer to the psuedolikelihood function
degreedist

Computes and Returns the Degree Distribution Information for a Given Network
faux.desert.high

Faux desert High School as a network object
standardize.network

Copy a network object enforcing ergm-appropriate guarantees about its internal representation
ecoli

Two versions of an E. Coli network dataset
ergm.geodistdist

Calculate geodesic distance distribution for a network or edgelist
faux.dixon.high

Faux dixon High School as a network object
ergm.getnetwork

Acquire and verify the network from the LHS of an ergm formula and verify that it is a valid network.
ergm_plot.mcmc.list

Plot MCMC list using lattice package graphics
g4

Goodreau's four node network as a "network" object
eut-upgrade

get.node.attr

Retrieve and check assumptions about vertex attributes (nodal covariates) in a network
network.list

ergm_proposal

Functions to initialize the ergm_proposal object
is.curved

Testing for curved exponential family
network.update

Replace the sociomatrix in a network object
geweke.diag.mv

search.ergmTerms

Search the ergm-terms documentation for appropriate terms
gof

Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
is.durational

Testing for durational dependent models
simulate.ergm

Draw from the distribution of an Exponential Family Random Graph Model
is.dyad.independent

Testing for dyad-independence
nvattr.copy.network

Copy network- and vertex-level attributes between two network objects
logLik.ergm

A logLik method for ergm fits.
is.inCH

Determine whether a vector is in the closure of the convex hull of some sample of vectors
logLikNull

Calculate the null model likelihood
param_names

Names of the parameters associated with an object.
newnw.extract

Internal function to create a new network from the ergm MCMC sample output
node-attr-api

Helper functions for specifying nodal attribute levels
print.summary.ergm

Summarizing ERGM Model Fits
summary.ergm_model

Evaluate network summary statistics from an initialized ergm model
summary.formula

Calculation of network or graph statistics or other attributes specified on a formula
summary_formula

Dispatching a summary function based on the class of the LHS of a formula.
check.ErgmTerm

Ensures an Ergm Term and its Arguments Meet Appropriate Conditions
control.ergm

Auxiliary for Controlling ERGM Fitting
ergm-constraints

Sample Space Constraints for Exponential-Family Random Graph Models
ergm-defunct

Functions that have been removed from this package
ergm-references

Reference Measures for Exponential-Family Random Graph Models
ergm.eta

Operations to map curved ergm() parameters onto canonical parameters
ergm-terms

Terms used in Exponential Family Random Graph Models
ergm.exact

Calculate the exact loglikelihood for an ERGM
faux.magnolia.high

Goodreau's Faux Magnolia High School as a network object
faux.mesa.high

Goodreau's Faux Mesa High School as a network object
kapferer

Kapferer's tailor shop data
lasttoggle

Storing last toggle information in a network
node-attr

Specifying nodal attributes and their levels
nparam

Length of the parameter vector associated with an object or with its terms.
to_ergm_Cdouble.network

Methods to serialize objects into numeric vectors for passing to the C side.
wtd.median

Weighted Median
Getting.Started

Getting Started with "ergm": Fit, simulate and diagnose exponential-family models for networks
anova.ergm

ANOVA for ERGM Fits
control.gof

Auxiliary for Controlling ERGM Goodness-of-Fit Evaluation
control.logLik.ergm

Auxiliary for Controlling logLik.ergm