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

## Documentation for package ‘ergm’ version 3.10.4

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

A B C D E F G H I K L M N O P R S T U V W

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

## -- A --

absdiff | Terms used in Exponential Family Random Graph Models
absdiffcat | Terms used in Exponential Family Random Graph Models
altkstar | Terms used in Exponential Family Random Graph Models
anova.ergm | ANOVA for ERGM Fits
anova.ergmlist | ANOVA for ERGM Fits
approx.hotelling.diff.test | Approximate Hotelling T^2-Test for One Sample Means
as.edgelist.compressed | Convert a network object into a numeric edgelist matrix
as.network.numeric | Create a Simple Random network of a Given Size
asymmetric | Terms used in Exponential Family Random Graph Models
atleast | Terms used in Exponential Family Random Graph Models
atmost | Terms used in Exponential Family Random Graph Models
attrname | Specifying nodal attributes and their levels
attrs | Specifying nodal attributes and their levels

## -- B --

b1concurrent | Terms used in Exponential Family Random Graph Models
b1cov | Terms used in Exponential Family Random Graph Models
b1degrange | Terms used in Exponential Family Random Graph Models
b1degree | Terms used in Exponential Family Random Graph Models
b1degrees | Sample Space Constraints for Exponential-Family Random Graph Models
b1factor | Terms used in Exponential Family Random Graph Models
b1mindegree | Terms used in Exponential Family Random Graph Models
b1nodematch | Terms used in Exponential Family Random Graph Models
b1sociality | Terms used in Exponential Family Random Graph Models
b1star | Terms used in Exponential Family Random Graph Models
b1starmix | Terms used in Exponential Family Random Graph Models
b1twostar | Terms used in Exponential Family Random Graph Models
b2concurrent | Terms used in Exponential Family Random Graph Models
b2cov | Terms used in Exponential Family Random Graph Models
b2degrange | Terms used in Exponential Family Random Graph Models
b2degree | Terms used in Exponential Family Random Graph Models
b2degrees | Sample Space Constraints for Exponential-Family Random Graph Models
b2factor | Terms used in Exponential Family Random Graph Models
b2mindegree | Terms used in Exponential Family Random Graph Models
b2nodematch | Terms used in Exponential Family Random Graph Models
b2sociality | Terms used in Exponential Family Random Graph Models
b2star | Terms used in Exponential Family Random Graph Models
b2starmix | Terms used in Exponential Family Random Graph Models
b2twostar | Terms used in Exponential Family Random Graph Models
balance | Terms used in Exponential Family Random Graph Models
bd | Sample Space Constraints for Exponential-Family Random Graph Models
Bernoulli | Reference Measures for Exponential-Family Random Graph Models
blockdiag | Sample Space Constraints for Exponential-Family Random Graph Models
by | Specifying nodal attributes and their levels

## -- C --

check.ErgmTerm | Ensures an Ergm Term and its Arguments Meet Appropriate Conditions
coef.ergm | Exponential-Family Random Graph Models
coefficients.ergm | Exponential-Family Random Graph Models
coincidence | Terms used in Exponential Family Random Graph Models
concurrent | Terms used in Exponential Family Random Graph Models
concurrentties | Terms used in Exponential Family Random Graph Models
constraints-ergm | Sample Space Constraints for Exponential-Family Random Graph Models
constraints.ergm | Sample Space Constraints for Exponential-Family Random Graph Models
control.ergm | Auxiliary for Controlling ERGM Fitting
control.ergm.bridge | Auxiliary for Controlling ergm.bridge
control.ergm.godfather | Control parameters for 'ergm.godfather()'.
control.gof | Auxiliary for Controlling ERGM Goodness-of-Fit Evaluation
control.gof.ergm | Auxiliary for Controlling ERGM Goodness-of-Fit Evaluation
control.gof.formula | Auxiliary for Controlling ERGM Goodness-of-Fit Evaluation
control.logLik.ergm | Auxiliary for Controlling logLik.ergm
control.san | Auxiliary for Controlling SAN
control.simulate | Auxiliary for Controlling ERGM Simulation
control.simulate.ergm | Auxiliary for Controlling ERGM Simulation
control.simulate.formula | Auxiliary for Controlling ERGM Simulation
control.simulate.formula.ergm | Auxiliary for Controlling ERGM Simulation
ctriad | Terms used in Exponential Family Random Graph Models
ctriple | Terms used in Exponential Family Random Graph Models
cycle | Terms used in Exponential Family Random Graph Models
cyclicalties | Terms used in Exponential Family Random Graph Models
cyclicalweights | Terms used in Exponential Family Random Graph Models

## -- D --

ddsp | Terms used in Exponential Family Random Graph Models
degcor | Terms used in Exponential Family Random Graph Models
degcrossprod | Terms used in Exponential Family Random Graph Models
degrange | Terms used in Exponential Family Random Graph Models
degree | Terms used in Exponential Family Random Graph Models
degree1.5 | Terms used in Exponential Family Random Graph Models
degreedist | Computes and Returns the Degree Distribution Information for a Given Network
degreedist-constraint | Sample Space Constraints for Exponential-Family Random Graph Models
degreedist.network | Computes and Returns the Degree Distribution Information for a Given Network
degreepopularity | Terms used in Exponential Family Random Graph Models
degrees | Sample Space Constraints for Exponential-Family Random Graph Models
density | Terms used in Exponential Family Random Graph Models
desp | Terms used in Exponential Family Random Graph Models
dgwdsp | Terms used in Exponential Family Random Graph Models
dgwesp | Terms used in Exponential Family Random Graph Models
dgwnsp | Terms used in Exponential Family Random Graph Models
diff | Terms used in Exponential Family Random Graph Models
DiscUnif | Reference Measures for Exponential-Family Random Graph Models
dnsp | Terms used in Exponential Family Random Graph Models
dsp | Terms used in Exponential Family Random Graph Models
dyadcov | Terms used in Exponential Family Random Graph Models

## -- E --

ecoli | Two versions of an E. Coli network dataset
ecoli1 | Two versions of an E. Coli network dataset
ecoli2 | Two versions of an E. Coli network dataset
edgecov | Terms used in Exponential Family Random Graph Models
edges | 'edges' (disambiguation)
edges-constraint | Sample Space Constraints for Exponential-Family Random Graph Models
edges-term | Terms used in Exponential Family Random Graph Models
enformulate.curved | Convert a curved ERGM into a form suitable as initial values for the same ergm.
enformulate.curved.ergm | Convert a curved ERGM into a form suitable as initial values for the same ergm.
enformulate.curved.formula | Convert a curved ERGM into a form suitable as initial values for the same ergm.
equalto | Terms used in Exponential Family Random Graph Models
ergm | Exponential-Family Random Graph Models
ergm-constraints | Sample Space Constraints for Exponential-Family Random Graph Models
ergm-parallel | Parallel Processing in the 'ergm' Package
ergm-references | Reference Measures for Exponential-Family Random Graph Models
ergm-terms | Terms used in Exponential Family Random Graph Models
ergm.allstats | Calculate all possible vectors of statistics on a network for an ERGM
ergm.bounddeg | Initializes the parameters to bound degree during sampling
ergm.bridge.0.llk | Bridge sampling to evaluate ERGM log-likelihoods and log-likelihood ratios
ergm.bridge.dindstart.llk | Bridge sampling to evaluate ERGM log-likelihoods and log-likelihood ratios
ergm.bridge.llr | Bridge sampling to evaluate ERGM log-likelihoods and log-likelihood ratios
ergm.constraints | Sample Space Constraints for Exponential-Family Random Graph Models
ergm.degeneracy | Checks an ergm Object for Degeneracy
ergm.exact | Calculate the exact loglikelihood for an ERGM
ergm.geodesicmatrix | Calculate geodesic distance distribution for a network or edgelist
ergm.geodesicmatrix.edgelist | Calculate geodesic distance distribution for a network or edgelist
ergm.geodistdist | Calculate geodesic distance distribution for a network or edgelist
ergm.geodistn | Calculate geodesic distance distribution for a network or edgelist
ergm.getCluster | Parallel Processing in the 'ergm' Package
ergm.getnetwork | Acquire and verify the network from the LHS of an 'ergm' formula and verify that it is a valid network.
ergm.godfather | A function to apply a given series of changes to a network.
ergm.nodegeodesics | Calculate geodesic distance distribution for a network or edgelist
ergm.object | Exponential-Family Random Graph Models
ergm.pairgeodesic | Calculate geodesic distance distribution for a network or edgelist
ergm.parallel | Parallel Processing in the 'ergm' Package
ergm.references | Reference Measures for Exponential-Family Random Graph Models
ergm.restartCluster | Parallel Processing in the 'ergm' Package
ergm.stopCluster | Parallel Processing in the 'ergm' Package
ergm.terms | Terms used in Exponential Family Random Graph Models
ergmMPLE | ERGM Predictors and response for logistic regression calculation of MPLE
ergm_MCMC_sample | Internal Function to Sample Networks and Network Statistics
ergm_MCMC_slave | Internal Function to Sample Networks and Network Statistics
ergm_plot.mcmc.list | Plot MCMC list using 'lattice' package graphics
esp | Terms used in Exponential Family Random Graph Models
eut-upgrade | Updating 'ergm.userterms' prior to 3.1

## -- F --

faux.desert.high | Faux desert High School as a network object
faux.dixon.high | Faux dixon High School as a network object
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
fauxhigh | Goodreau's Faux Mesa High School as a network object
fix.curved | Convert a curved ERGM into a corresponding "fixed" ERGM.
fix.curved.ergm | Convert a curved ERGM into a corresponding "fixed" ERGM.
fix.curved.formula | Convert a curved ERGM into a corresponding "fixed" ERGM.
fixallbut | Sample Space Constraints for Exponential-Family Random Graph Models
fixedas | Sample Space Constraints for Exponential-Family Random Graph Models
flobusiness | Florentine Family Marriage and Business Ties Data as a "network" object
flomarriage | Florentine Family Marriage and Business Ties Data as a "network" object
florentine | Florentine Family Marriage and Business Ties Data as a "network" object

## -- G --

g4 | Goodreau's four node network as a "network" object
Getting.Started | Getting Started with "ergm": Fit, simulate and diagnose exponential-family models for networks
geweke.diag.mv | Multivariate version of 'coda"s 'coda::geweke.diag()'.
gof | Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
gof.default | Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
gof.ergm | Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
gof.formula | Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
greaterthan | Terms used in Exponential Family Random Graph Models
gwb1degree | Terms used in Exponential Family Random Graph Models
gwb2degree | Terms used in Exponential Family Random Graph Models
gwdegree | Terms used in Exponential Family Random Graph Models
gwdsp | Terms used in Exponential Family Random Graph Models
gwesp | Terms used in Exponential Family Random Graph Models
gwidegree | Terms used in Exponential Family Random Graph Models
gwnsp | Terms used in Exponential Family Random Graph Models
gwodegree | Terms used in Exponential Family Random Graph Models

## -- H --

hamming | 'hamming' (disambiguation)
hamming-constraint | Sample Space Constraints for Exponential-Family Random Graph Models
hamming-term | Terms used in Exponential Family Random Graph Models
hammingmix | Terms used in Exponential Family Random Graph Models

## -- I --

idegrange | Terms used in Exponential Family Random Graph Models
idegree | Terms used in Exponential Family Random Graph Models
idegree1.5 | Terms used in Exponential Family Random Graph Models
idegreedist | Sample Space Constraints for Exponential-Family Random Graph Models
idegreepopularity | Terms used in Exponential Family Random Graph Models
idegrees | Sample Space Constraints for Exponential-Family Random Graph Models
ininterval | Terms used in Exponential Family Random Graph Models
InitErgmTerm | Terms used in Exponential Family Random Graph Models
intransitive | Terms used in Exponential Family Random Graph Models
is.curved | Testing for curved exponential family
is.curved.ergm | Testing for curved exponential family
is.curved.formula | Testing for curved exponential family
is.curved.NULL | Testing for curved exponential family
is.durational | Testing for durational dependent models
is.durational.character | Testing for durational dependent models
is.durational.formula | Testing for durational dependent models
is.durational.NULL | Testing for durational dependent models
is.dyad.independent | Testing for dyad-independence
is.dyad.independent.ergm | Testing for dyad-independence
is.dyad.independent.ergm_conlist | Testing for dyad-independence
is.dyad.independent.formula | Testing for dyad-independence
is.dyad.independent.NULL | Testing for dyad-independence
is.ergm | Exponential-Family Random Graph Models
is.inCH | Determine whether a vector is in the closure of the convex hull of some sample of vectors
isolates | Terms used in Exponential Family Random Graph Models
istar | Terms used in Exponential Family Random Graph Models

## -- K --

kapferer | Kapferer's tailor shop data
kapferer2 | Kapferer's tailor shop data
kstar | Terms used in Exponential Family Random Graph Models

## -- L --

localtriangle | Terms used in Exponential Family Random Graph Models
logLik.ergm | A 'logLik' method for 'ergm' fits.
logLikNull | Calculate the null model likelihood
logLikNull.ergm | Calculate the null model likelihood

## -- M --

m2star | Terms used in Exponential Family Random Graph Models
match | Terms used in Exponential Family Random Graph Models
mcmc.diagnostics | Conduct MCMC diagnostics on a model fit
mcmc.diagnostics.default | Conduct MCMC diagnostics on a model fit
mcmc.diagnostics.ergm | Conduct MCMC diagnostics on a model fit
meandeg | Terms used in Exponential Family Random Graph Models
mm | Terms used in Exponential Family Random Graph Models
molecule | Synthetic network with 20 nodes and 28 edges
mutual | Terms used in Exponential Family Random Graph Models

## -- N --

nearsimmelian | Terms used in Exponential Family Random Graph Models
network.list | A convenience container for a list of 'network' objects, output by 'simulate.ergm' among others.
nobs.ergm | Exponential-Family Random Graph Models
node-attr | Specifying nodal attributes and their levels
nodecov | Terms used in Exponential Family Random Graph Models
nodecovar | Terms used in Exponential Family Random Graph Models
nodedegrees | Sample Space Constraints for Exponential-Family Random Graph Models
nodefactor | Terms used in Exponential Family Random Graph Models
nodeicov | Terms used in Exponential Family Random Graph Models
nodeicovar | Terms used in Exponential Family Random Graph Models
nodeifactor | Terms used in Exponential Family Random Graph Models
nodeisqrtcovar | Terms used in Exponential Family Random Graph Models
nodemain | Terms used in Exponential Family Random Graph Models
nodematch | Terms used in Exponential Family Random Graph Models
nodemix | Terms used in Exponential Family Random Graph Models
nodeocov | Terms used in Exponential Family Random Graph Models
nodeocovar | Terms used in Exponential Family Random Graph Models
nodeofactor | Terms used in Exponential Family Random Graph Models
nodeosqrtcovar | Terms used in Exponential Family Random Graph Models
nodesqrtcovar | Terms used in Exponential Family Random Graph Models
nonzero | Terms used in Exponential Family Random Graph Models
nparam | Length of the parameter vector associated with an object or with its terms.
nparam.default | Length of the parameter vector associated with an object or with its terms.
nparam.ergm | Length of the parameter vector associated with an object or with its terms.
nsp | Terms used in Exponential Family Random Graph Models
nthreads | Parallel Processing in the 'ergm' Package
nthreads.cluster | Parallel Processing in the 'ergm' Package
nthreads.control.list | Parallel Processing in the 'ergm' Package
nthreads.NULL | Parallel Processing in the 'ergm' Package

## -- O --

observed | Sample Space Constraints for Exponential-Family Random Graph Models
odegrange | Terms used in Exponential Family Random Graph Models
odegree | Terms used in Exponential Family Random Graph Models
odegree1.5 | Terms used in Exponential Family Random Graph Models
odegreedist | Sample Space Constraints for Exponential-Family Random Graph Models
odegreepopularity | Terms used in Exponential Family Random Graph Models
odegrees | Sample Space Constraints for Exponential-Family Random Graph Models
on | Specifying nodal attributes and their levels
opentriad | Terms used in Exponential Family Random Graph Models
ostar | Terms used in Exponential Family Random Graph Models

## -- P --

parallel | Parallel Processing in the 'ergm' Package
parallel-ergm | Parallel Processing in the 'ergm' Package
parallel.ergm | Parallel Processing in the 'ergm' Package
param_names | Names of the parameters associated with an object.
param_names.default | Names of the parameters associated with an object.
plot.gof | Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
print.ergm | Exponential-Family Random Graph Models
print.gof | Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph Model
print.network.list | A convenience container for a list of 'network' objects, output by 'simulate.ergm' among others.
print.summary.ergm | Summarizing ERGM Model Fits

## -- R --

receiver | Terms used in Exponential Family Random Graph Models
references-ergm | Reference Measures for Exponential-Family Random Graph Models
references.ergm | Reference Measures for Exponential-Family Random Graph Models

## -- S --

samplike | Cumulative network of positive affection within a monastery as a "network" object
samplk | Longitudinal networks of positive affection within a monastery as a "network" object
samplk1 | Longitudinal networks of positive affection within a monastery as a "network" object
samplk2 | Longitudinal networks of positive affection within a monastery as a "network" object
samplk3 | Longitudinal networks of positive affection within a monastery 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
san.default | Use Simulated Annealing to attempt to match a network to a vector of mean statistics
san.ergm | Use Simulated Annealing to attempt to match a network to a vector of mean statistics
san.ergm_model | Use Simulated Annealing to attempt to match a network to a vector of mean statistics
san.formula | Use Simulated Annealing to attempt to match a network to a vector of mean statistics
search.ergmTerms | Search the ergm-terms documentation for appropriate terms
sender | Terms used in Exponential Family Random Graph Models
simmelian | Terms used in Exponential Family Random Graph Models
simmelianties | Terms used in Exponential Family Random Graph Models
simulate.ergm | Draw from the distribution of an Exponential Family Random Graph Model
simulate.ergm_model | Draw from the distribution of an Exponential Family Random Graph Model
simulate.formula | Draw from the distribution of an Exponential Family Random Graph Model
simulate.formula.ergm | Draw from the distribution of an Exponential Family Random Graph Model
smalldiff | Terms used in Exponential Family Random Graph Models
smallerthan | Terms used in Exponential Family Random Graph Models
sociality | Terms used in Exponential Family Random Graph Models
spectrum0.mvar | Multivariate version of 'coda"s 'spectrum0.ar()'.
StdNormal | Reference Measures for Exponential-Family Random Graph Models
sum | Terms used in Exponential Family Random Graph Models
summary | Calculation of network or graph statistics or other attributes specified on a formula
summary.ergm | Summarizing ERGM Model Fits
summary.formula | Calculation of network or graph statistics or other attributes specified on a formula
summary.network.list | A convenience container for a list of 'network' objects, output by 'simulate.ergm' among others.

## -- T --

tailor | Kapferer's tailor shop data
terms-ergm | Terms used in Exponential Family Random Graph Models
terms.ergm | Terms used in Exponential Family Random Graph Models
threepath | Terms used in Exponential Family Random Graph Models
threetrail | Terms used in Exponential Family Random Graph Models
transitive | Terms used in Exponential Family Random Graph Models
transitiveties | Terms used in Exponential Family Random Graph Models
transitiveweights | Terms used in Exponential Family Random Graph Models
triadcensus | Terms used in Exponential Family Random Graph Models
triangle | Terms used in Exponential Family Random Graph Models
triangles | Terms used in Exponential Family Random Graph Models
tripercent | Terms used in Exponential Family Random Graph Models
ttriad | Terms used in Exponential Family Random Graph Models
ttriple | Terms used in Exponential Family Random Graph Models
twopath | Terms used in Exponential Family Random Graph Models

## -- U --

Unif | Reference Measures for Exponential-Family Random Graph Models
update.network | Update the edges in a network based on a matrix

## -- V --

vcov.ergm | Exponential-Family Random Graph Models

## -- W --

wtd.median | Weighted Median