ergm4.7.5 package

Fit, Simulate and Diagnose Exponential-Family Models for Networks

absdiff-ergmTerm-9fc8de5a

Absolute difference in nodal attribute

absdiffcat-ergmTerm-5b2a4b77

Categorical absolute difference in nodal attribute

altkstar-ergmTerm-201bf7a6

Alternating kk-star

anova.ergm

ANOVA for ERGM Fits

approx.hotelling.diff.test

Approximate Hotelling T^2-Test for One or Two Population Means

as.network.numeric

Create a Simple Random network of a Given Size

as.rlebdm.ergm_conlist

Extract dyad-level ERGM constraint information into an rlebdm object

asymmetric-ergmTerm-da585369

Asymmetric dyads

atleast-ergmTerm-1b0585b0

Number of dyads with values greater than or equal to a threshold

atmost-ergmTerm-145d3def

Number of dyads with values less than or equal to a threshold

attrcov-ergmTerm-a2d6aeef

Edge covariate by attribute pairing

B-ergmTerm-1e2e5333

Wrap binary terms for use in valued models

b1concurrent-ergmTerm-b6d8305e

Concurrent node count for the first mode in a bipartite network

b1cov-ergmTerm-a16e8340

Main effect of a covariate for the first mode in a bipartite network

b1degrange-ergmTerm-ae4dbc10

Degree range for the first mode in a bipartite network

b1degree-ergmTerm-b23eca4d

Degree for the first mode in a bipartite network

b1degrees-ergmConstraint-34a58d68

Preserve the actor degree for bipartite networks

b1dsp-ergmTerm-f3ebeba1

Dyadwise shared partners for dyads in the first bipartition

b1factor-ergmTerm-ad0d3a93

Factor attribute effect for the first mode in a bipartite network

b1mindegree-ergmTerm-f69f807c

Minimum degree for the first mode in a bipartite network

b1nodematch-ergmTerm-110b470e

Nodal attribute-based homophily effect for the first mode in a biparti...

b1sociality-ergmTerm-4c85e6e8

Degree

b1star-ergmTerm-24b65fe7

kk-stars for the first mode in a bipartite network

b1starmix-ergmTerm-e8fb79b6

Mixing matrix for kk-stars centered on the first mode of a bipartite ...

b1twostar-ergmTerm-3ca58d12

Two-star census for central nodes centered on the first mode of a bipa...

b2concurrent-ergmTerm-c72bf19a

Concurrent node count for the second mode in a bipartite network

b2cov-ergmTerm-abbfac55

Main effect of a covariate for the second mode in a bipartite network

b2degrange-ergmTerm-d16c3697

Degree range for the second mode in a bipartite network

b2degree-ergmTerm-20b6a8ee

Degree for the second mode in a bipartite network

b2degrees-ergmConstraint-2b170be6

Preserve the receiver degree for bipartite networks

b2dsp-ergmTerm-e9e03312

Dyadwise shared partners for dyads in the second bipartition

b2factor-ergmTerm-bed2c507

Factor attribute effect for the second mode in a bipartite network

b2mindegree-ergmTerm-3b15466d

Minimum degree for the second mode in a bipartite network

b2nodematch-ergmTerm-126ff8a2

Nodal attribute-based homophily effect for the second mode in a bipart...

b2sociality-ergmTerm-ae7e4336

Degree

b2star-ergmTerm-76adb9af

kk-stars for the second mode in a bipartite network

b2starmix-ergmTerm-391186eb

Mixing matrix for kk-stars centered on the second mode of a bipartite...

b2twostar-ergmTerm-ca7ec3bb

Two-star census for central nodes centered on the second mode of a bip...

balance-ergmTerm-9111bd77

Balanced triads

bd-ergmConstraint-54194cbb

Constrain maximum and minimum vertex degree

BDStratTNT-ergmProposal-688ae434

TNT proposal with degree bounds, stratification, and a blocks constrai...

Bernoulli-ergmReference-d4c68fcc

Bernoulli reference

blockdiag-ergmConstraint-140bec05

Block-diagonal structure constraint

blocks-ergmConstraint-6ef7822c

Constrain blocks of dyads defined by mixing type on a vertex attribute...

call.ErgmTerm

Locate and call an ERGM term initialization function.

check.ErgmTerm

Ensures an Ergm Term and its Arguments Meet Appropriate Conditions

coincidence-ergmTerm-58ca78cc

Coincident node count for the second mode in a bipartite (aka two-mode...

concurrent-ergmTerm-a0121891

Concurrent node count

concurrentties-ergmTerm-8ccb08e6

Concurrent tie count

CondB1Degree-ergmProposal-7a475c2a

MHp for b1degree constraints

CondB2Degree-ergmProposal-5d8af849

MHp for b2degree constraints

CondDegree-ergmProposal-7eb103fc

MHp for degree constraints

CondDegreeDist-ergmProposal-34ad190d

MHp for degreedist constraints

CondDegreeMix-ergmProposal-ebac6940

MHp for degree mix constraints

CondInDegree-ergmProposal-b2ca9c42

MHp for idegree constraints

CondInDegreeDist-ergmProposal-eaba12ac

MHp for idegreedist constraints

CondOutDegree-ergmProposal-99f320aa

MHp for odegree constraints

CondOutDegreeDist-ergmProposal-70b19fec

MHp for odegreedist constraints

ConstantEdges-ergmProposal-86c42078

MHp for edges constraints

control.ergm.bridge

Auxiliaries for Controlling ergm.bridge.llr() and logLik.ergm()

control.ergm

Auxiliary function for fine-tuning ERGM fitting.

control.gof

Auxiliary for Controlling ERGM Goodness-of-Fit Evaluation

control.san

Auxiliary for Controlling SAN

control.simulate.ergm

Auxiliary for Controlling ERGM Simulation

ctriple-ergmTerm-9ad4f7cd

Cyclic triples

Curve-ergmTerm-a37fe1f0

Impose a curved structure on term parameters

cycle-ergmTerm-20398683

k-Cycle Census

cyclicalties-ergmTerm-636eecc3

Cyclical ties

cyclicalweights-ergmTerm-994a6687

Cyclical weights

degcor-ergmTerm-b501a3c7

Degree Correlation

degcrossprod-ergmTerm-fb36e593

Degree Cross-Product

degrange-ergmTerm-e31fe592

Degree range

degree-ergmTerm-64bfdc89

Degree

degree15-ergmTerm-ea15bf13

Degree to the 3/2 power

degreedist-ergmConstraint-9d661be6

Preserve the degree distribution of the given network

degreedist

Computes and Returns the Degree Distribution Information for a Given N...

degrees-ergmConstraint-602e0f0d

Preserve the degree of each vertex of the given network

density-ergmTerm-9f4752d0

Density

diff-ergmTerm-0b65ee46

Difference

DiscUnif-ergmProposal-94b67a89

TODO

DiscUnif-ergmReference-94b67a89

Discrete Uniform reference

DiscUnif2-ergmProposal-9c930fb8

TODO

DiscUnifNonObserved-ergmProposal-7c6ffca5

TODO

DistRLE-ergmProposal-0b113fec

TODO

dsp-ergmTerm-1a10473d

Directed dyadwise shared partners

dyadcov-ergmTerm-5fba5404

Dyadic covariate

dyadnoise-ergmConstraint-03418976

A soft constraint to adjust the sampled distribution for dyad-level no...

dyadnoise-ergmProposal-03418976

TODO

dyadnoiseTNT-ergmProposal-7d4cf03c

TODO

Dyads-ergmConstraint-3aee3115

Constrain fixed or varying dyad-independent terms

dyads-ergmConstraint-d98f9f81

A meta-constraint indicating handling of arbitrary dyadic constraints

edgecov-ergmTerm-1fb5ef19

Edge covariate

edges-ergmConstraint-dc999be9

Preserve the edge count of the given network

edges-ergmTerm-dc999be9

Number of edges in the network

egocentric-ergmConstraint-60aa4e0b

Preserve values of dyads incident on vertices with given attribute

enformulate.curved-deprecated

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

equalto-ergmTerm-c31f7686

Number of dyads with values equal to a specific value (within toleranc...

ergm_bd_init

Initializes the parameters to bound degree during sampling

ergm_Cstate_clear

Deallocate the C data structures corresponding to an ergm_state left...

ergm_cutoff_message

Helper function for constructing gw* cutoff error messages

ergm_dyadgen_select

A helper function to select and construct a dyad generator for C.

ergm_edgecov_args

A common pattern for obtaining an edge covariate

ergm_GWDECAY

Curved settings for geometric weights for the gw* terms

ergm_keyword

Dynamic ERGM keyword registry

ergm_MCMC_sample

Internal Function to Sample Networks and Network Statistics

ergm_mk_std_op_namewrap

Combine an operator term's and a subterm's name in a standard fashion.

ergm_model

Internal representation of an ergm network model

ergm_plot.mcmc.list

Plot MCMC list using lattice package graphics

ergm_preprocess_response

Update the network and the response argument.

ergm_propagate_ext.encode

Extended states for submodels

ergm_proposal_table

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

ergm_proposal

Functions to initialize the ergm_proposal object

ergm_SAN_slave

Internal Function to Perform Simulated Annealing

ergm_state_cache

A rudimentary cache for large objects

ergm_state

A Representation of ERGM state

ergm_symmetrize

Return a symmetrized version of a binary 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 p...

ergm-errors

Sensible error and warning messages by ergm initializers

ergm-internal

Internal ergm Objects

ergm-options

Global options and term options for the ergm package

ergm-package

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

ergm-parallel

Parallel Processing in the ergm Package

ergm.allstats

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

ergm.bridge.llr

Bridge sampling to evaluate ERGM log-likelihoods and log-likelihood ra...

ergm.design

Obtain the set of informative dyads based on the network structure.

ergm.estfun

Compute the Sample Estimating Function Values of an ERGM.

ergm.eta

Operations to map curved ergm() parameters onto canonical parameters

ergm.geodistdist

Calculate geodesic distance distribution for a network or edgelist

ergm.getnetwork

Acquire and verify the network from the LHS of an ergm formula and v...

ergm.godfather

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

ergm.mple

Find a maximizer to the psuedolikelihood function

ergm

Exponential-Family Random Graph Models

ergmConstraint

Sample Space Constraints for Exponential-Family Random Graph Models

ergmHint

MCMC Hints for Exponential-Family Random Graph Models

ergmKeyword

Keywords defined for Exponential-Family Random Graph Models

ergmlhs

An API for specifying aspects of an ergm model in the LHS/basis netw...

ergmMPLE

ERGM Predictors and response for logistic regression calculation of MP...

ergmProposal

Metropolis-Hastings Proposal Methods for ERGM MCMC

ergmReference

Reference Measures for Exponential-Family Random Graph Models

ergmTerm

Terms used in Exponential Family Random Graph Models

esp-ergmTerm-d2e07fc8

Directed edgewise shared partners

Exp-ergmTerm-2a7372d1

Exponentiate a network's statistic

F-ergmTerm-1029798a

Filtering on arbitrary one-term model

fix.curved

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

fixallbut-ergmConstraint-ea96b2e0

Preserve the dyad status in all but the given edges

fixedas-ergmConstraint-3f69c25b

Fix specific dyads

For-ergmTerm-f403b433

A for operator for terms

get.node.attr

Retrieve and check assumptions about vertex attributes (nodal covariat...

geweke.diag.mv

Multivariate version of coda's coda::geweke.diag().

gof

Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Gra...

greaterthan-ergmTerm-6b8cc380

Number of dyads with values strictly greater than a threshold

gwb1degree-ergmTerm-847064c5

Geometrically weighted degree distribution for the first mode in a bip...

gwb1dsp-ergmTerm-0bf628f4

Geometrically weighted dyadwise shared partner distribution for dyads ...

gwb2degree-ergmTerm-584e787c

Geometrically weighted degree distribution for the second mode in a bi...

gwb2dsp-ergmTerm-2d408a5d

Geometrically weighted dyadwise shared partner distribution for dyads ...

gwdegree-ergmTerm-b4e39ca9

Geometrically weighted degree distribution

gwdsp-ergmTerm-4e3dfd97

Geometrically weighted dyadwise shared partner distribution

gwesp-ergmTerm-3d6fb5a8

Geometrically weighted edgewise shared partner distribution

gwidegree-ergmTerm-b37ed894

Geometrically weighted in-degree distribution

gwnsp-ergmTerm-6def2a32

Geometrically weighted non-edgewise shared partner distribution

gwodegree-ergmTerm-276e606c

Geometrically weighted out-degree distribution

hamming-ergmConstraint-82ea89b9

Preserve the hamming distance to the given network (BROKEN: Do NOT Use...

hamming-ergmTerm-82ea89b9

Hamming distance

HammingConstantEdges-ergmProposal-a5e8b9cb

TODO

HammingTNT-ergmProposal-de3765d7

TODO

idegrange-ergmTerm-03001d90

In-degree range

idegree-ergmTerm-036b6e10

In-degree

idegree15-ergmTerm-b83b1a3a

In-degree to the 3/2 power

idegreedist-ergmConstraint-98f28449

Preserve the indegree distribution

idegrees-ergmConstraint-04ab7684

Preserve indegree for directed networks

ininterval-ergmTerm-e9384dcc

Number of dyads whose values are in an interval

intransitive-ergmTerm-4a599cad

Intransitive triads

is.curved

Testing for curved exponential family

is.dyad.independent

Testing for dyad-independence

is.valued

Function to check whether an ERGM fit or some aspect of it is valued

isolatededges-ergmTerm-78b32353

Isolated edges

isolates-ergmTerm-55ae8770

Isolates

istar-ergmTerm-686da871

In-stars

kstar-ergmTerm-9ffb742c

kk-stars

Label-ergmTerm-6de33f4e

Modify terms' coefficient names

localtriangle-ergmTerm-8ca12415

Triangles within neighborhoods

Log-ergmTerm-f1bed869

Take a natural logarithm of a network's statistic

logLik.ergm

A logLik() method for ergm fits.

logLikNull

Calculate the null model likelihood

m2star-ergmTerm-bff0f16e

Mixed 2-stars, a.k.a 2-paths

mcmc.diagnostics

Conduct MCMC diagnostics on a model fit

meandeg-ergmTerm-f81357a5

Mean vertex degree

mm-ergmTerm-0264ed3f

Mixing matrix cells and margins

mutual-ergmTerm-22863009

Mutuality

nearsimmelian-ergmTerm-ba85787e

Near simmelian triads

network.list

A convenience container for a list of network objects, output by `si...

nodal_attributes-API

Helper functions for specifying nodal attribute levels

nodal_attributes

Specifying nodal attributes and their levels

nodecov-ergmTerm-e6fb5c28

Main effect of a covariate

nodecovar-ergmTerm-35c93a8b

Covariance of undirected dyad values incident on each actor

nodefactor-ergmTerm-6bea11f2

Factor attribute effect

nodeicov-ergmTerm-02d64b5b

Main effect of a covariate for in-edges

nodeicovar-ergmTerm-06cfbce0

Covariance of in-dyad values incident on each actor

nodeifactor-ergmTerm-7604a73e

Factor attribute effect for in-edges

nodematch-ergmTerm-b316dba4

Uniform homophily and differential homophily

NodematchFilter-ergmTerm-8bd022b9

Filtering on nodematch

nodemix-ergmTerm-4723046c

Nodal attribute mixing

nodeocov-ergmTerm-3b42993a

Main effect of a covariate for out-edges

nodeocovar-ergmTerm-1fd42ee5

Covariance of out-dyad values incident on each actor

nodeofactor-ergmTerm-8944a896

Factor attribute effect for out-edges

nparam

Length of the parameter vector associated with an object or with its t...

nsp-ergmTerm-4586ea4f

Directed non-edgewise shared partners

nvattr.copy.network

Copy network- and vertex-level attributes between two network objects

observed-ergmConstraint-40f366ed

Preserve the observed dyads of the given network

odegrange-ergmTerm-a29a08d0

Out-degree range

odegree-ergmTerm-12c180fc

Out-degree

odegree15-ergmTerm-8ee8801b

Out-degree to the 3/2 power

odegreedist-ergmConstraint-692ae020

Preserve the outdegree distribution

odegrees-ergmConstraint-43961eb5

Preserve outdegree for directed networks

Offset-ergmTerm-b7b3ddc4

Terms with fixed coefficients

opentriad-ergmTerm-f67c1cac

Open triads

ostar-ergmTerm-88787ec2

k-Outstars

param_names

Names of the parameters associated with an object.

predict.formula

ERGM-based tie probabilities

Prod-ergmTerm-1bd03b4f

A product (or an arbitrary power combination) of one or more formulas

randomtoggle-ergmProposal-cb2c53fa

Propose a randomly selected dyad to toggle

rank_test.ergm

A lack-of-fit test for ERGMs

receiver-ergmTerm-1f82207a

Receiver effect

rlebdm

RLE-Compressed Boolean Dyad Matrix

S-ergmTerm-28cff48d

Evaluation on an induced subgraph

san

Generate networks with a given set of network statistics

search.ergmTerms

Search ERGM terms, constraints, references, hints, and proposals

sender-ergmTerm-e4dff00f

Sender effect

shrink_into_CH

Identify the position of a point relative to the convex hull of a set ...

simmelian-ergmTerm-15e60325

Simmelian triads

simmelianties-ergmTerm-3361aef9

Ties in simmelian triads

simulate.ergm

Draw from the distribution of an Exponential Family Random Graph Model

simulate.formula

A simulate Method for formula objects that dispatches based on the...

smalldiff-ergmTerm-11cc89ad

Number of ties between actors with similar attribute values

smallerthan-ergmTerm-33549cdd

Number of dyads with values strictly smaller than a threshold

snctrl

Statnet Control

sociality-ergmTerm-ecb55eaa

Undirected degree

sparse-ergmHint-ebcaba30

Sparse network

SPDyad-ergmProposal-28f18e81

A proposal alternating between TNT and a triad-focused proposal

spectrum0.mvar

Multivariate version of coda's spectrum0.ar().

StdNormal-ergmProposal-e2f0c57c

TODO

StdNormal-ergmReference-e2f0c57c

Standard Normal reference

strat-ergmHint-468d7d5e

Stratify Proposed Toggles by Mixing Type on a Vertex Attribute

sum-ergmTerm-304f882f

Sum of dyad values (optionally taken to a power)

Sum-ergmTerm-fe08cb7f

A sum (or an arbitrary linear combination) of one or more formulas

summary_formula

Dispatching a summary function based on the class of the LHS of a form...

summary.ergm_model

Evaluate network summary statistics from an initialized ergm model

summary.ergm

Summarizing ERGM Model Fits

summary.formula

Calculation of network or graph statistics or other attributes specifi...

Symmetrize-ergmTerm-61cab8ac

Evaluation on symmetrized (undirected) network

threetrail-ergmTerm-2ad16d45

Three-trails

TNT-ergmProposal-6a5bc996

Default MH algorithm

to_ergm_Cdouble

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

transitive-ergmTerm-838987d1

Transitive triads

transitiveties-ergmTerm-3382c137

Transitive ties

transitiveweights-ergmTerm-7797c57b

Transitive weights

triadcensus-ergmTerm-6a6bbd87

Triad census

triadic-ergmHint-b01cc436

Network with strong clustering (triad-closure) effects

triangle-ergmTerm-9b49a585

Triangles

tripercent-ergmTerm-a932d91a

Triangle percentage

ttriple-ergmTerm-db2252b3

Transitive triples

twopath-ergmTerm-930ae8af

2-Paths

Unif-ergmProposal-2d53092d

TODO

Unif-ergmReference-2d53092d

Continuous Uniform reference

UnifNonObserved-ergmProposal-bf008c8f

TODO

update.network

Update the edges in a network based on a matrix

wrap.ergm_model

Wrap a submodel's curved, empty network statistics, and extended state...

wtd.median

Weighted Median

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. See Hunter, Handcock, Butts, Goodreau, and Morris (2008) <doi:10.18637/jss.v024.i03> and Krivitsky, Hunter, Morris, and Klumb (2023) <doi:10.18637/jss.v105.i06>.

  • Maintainer: Pavel N. Krivitsky
  • License: GPL-3 + file LICENSE
  • Last published: 2024-11-06