Learn R Programming

⚠️There's a newer version (4.8.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.

Copy Link

Version

Install

install.packages('ergm')

Monthly Downloads

7,573

Version

3.8.0

License

GPL-3 + file LICENSE

Maintainer

Pavel N Krivitsky

Last Published

August 20th, 2017

Functions in ergm (3.8.0)

Getting.Started

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

Functions to initialize the MHproposal object
coef.length.model

Extract Number of parameters in ergm Model
control.ergm

Auxiliary for Controlling ERGM Fitting
as.edgelist

Convert a network object into a numeric edgelist matrix
as.network.numeric

Create a Simple Random network of a Given Size
check.ErgmTerm

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

Extract Model Coefficients
anova.ergm

ANOVA for ERGM Fits
approx.hotelling.diff.test

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

Two versions of an E. Coli network dataset
control.logLik.ergm

Auxiliary for Controlling logLik.ergm
control.simulate

Auxiliary for Controlling ERGM Simulation
control.san

Auxiliary for Controlling SAN
ergm_MH_proposals

Metropolis-Hastings Proposal Methods for ERGM MCMC
ergm-constraints

Sample Space Constraints for Exponential-Family Random Graph Models
control.ergm.bridge

Auxiliary for Controlling ergm.bridge
degreedist

Computes and Returns the Degree Distribution Information for a Given Network
ergm-defunct

Functions that have been removed from this package
ergm-deprecated

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

ergm-references

Reference Measures for Exponential-Family Random Graph Models
ergm-internal

Internal ergm Objects
ergm-package

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

Exponential-Family Random Graph Models
ergm.allstats

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

calculate geodesic distance distribution for a network or edgelist
ergm.getMCMCsample

Internal Function to Sample Networks Using C Wrapper
ergm.mple

Find a maximizer to the psuedolikelihood function
ergmMPLE

ERGM Predictors and response for logistic regression calculation of MPLE
control.gof

Auxiliary for Controlling ERGM Goodness-of-Fit Evaluation
ergm-terms

Terms used in Exponential Family Random Graph Models
ergm.ConstraintImplications

Set up the implied constraints from the current constraint
ergm.bounddeg

initializes the parameters to bound degree during sampling
ergm.bridge.dindstart.llk

Bridge sampling to estiamte log-likelihood of an ERGM, using a dyad-independent ERGM as a staring point.
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
g4

Goodreau's four node network as a ``network" object
get.free.dyads

Create a network containing only edges meeting a specific criteria
network.update

Replaces the sociomatrix in a network object
newnw.extract

Internal function to create a new network from the ergm MCMC sample output
fix.curved

Convert a curved ERGM into a corresponding ``fixed'' ERGM.
flobusiness

Florentine Family Business Ties Data as a ``network" object
logLik.ergm

A logLik method for ergm.
mcmc.diagnostics

Conduct MCMC diagnostics on an ergm fit
enformulate.curved

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

Internal Function to Prepare Data for ergm's C Interface
ergm.MHP.table

Table mapping reference,constraints, etc. to Metropolis Hastings Proposals (MHP)
ergm.getglobalstats

internal function to return global statistics for a given network
ergm.init.methods

Set up the initial fitting methods for reference measure and query available methods for that reference measure
flomarriage

Florentine Family Marriage Ties Data as a ``network" object
florentine

Florentine Family Marriage and Business Ties Data as a ``network" object
kapferer

Kapferer's tailor shop data
ergm.bridge.llr

A simple implementation of bridge sampling to evaluate log-likelihood-ratio between two ERGM configurations
ergm.degeneracy

Checks an ergm Object for Degeneracy
faux.desert.high

Faux desert High School as a network object
faux.dixon.high

Faux dixon High School as a network object
sampson

Cumulative network of positive affection within a monastery as a ``network'' object
san

Use Simulated Annealing to attempt to match a network to a vector of mean statistics
wtd.median

Weighted Median
lasttoggle

Storing last toggle information in a network
print.ergm

Exponential Random Graph Models
samplk

Longitudinal networks of positive affection within a monastery as a ``network'' object
standardize.network

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

Summarizing ERGM Model Fits
is.curved

Testing for curved exponential family
is.durational

Testing for durational dependent models
colMeans.mcmc.list

utility operations for mcmc.list objects
molecule

Synthetic network with 20 nodes and 28 edges
search.ergmTerms

Search the ergm-terms documentation for appropriate terms
simulate.ergm

Draw from the distribution of an Exponential Family Random Graph Model
summary.gofobject

Summaries the Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
summary.network.list

Summarizing network.list objects
ergm.eta

Operations with 'eta' vector of canonical parameter values from ergm model
ergm.exact

Calculate the exact loglikelihood for an ERGM
ergm.formula.utils

Internal Functions for Querying, Validating and Extracting from ERGM Formulas
plot.gofobject

Plot Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
plot.network.ergm

Two-Dimensional Visualization of Networks
eut-upgrade

get.node.attr

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

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

Testing for dyad-independence
is.inCH

Determine whether a vector is in the closure of the convex hull of some sample of vectors
nvattr.copy.network

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

Plotting Method for class ergm
summary.statistics

Calculation of network or graph statistics
vcov.ergm

Extract Model Covariance Matrix