Term documentation has been ported to the ergm 4.2 documentation API.
New term operator
Term and proposal keyword/concept
durational is registered by tergm.
Fixes to handling of
Fixes to documentation URLs.
Documentation for some arguments and control parameters is now more standardized and detailed.
Dissolution parameter estimation in the simple (EDApprox) case is a bit more accurate.
stergm() has been deprecated in favor of [tergm()], whose special case it is. It, and its associated functions may be removed in a future release.
Fixes to acommodate
BDStratTNT API changes (which were not as backwards-compatible as hoped).
Better error checking in
Some memory leaks fixed.
Cross() operator term now labels its coefficient names as such.
The package has undergone a major rewrite, making use of operator terms introduced in ergm 4.0 to facilitate model specification. See the “Conversions for tergm version 4.0” vignette for some examples.
stergm has been superseded by
tergm, which can fit non-separable discrete temporal ERGMs as well as separable.
In temporal estimation and simulation, operator terms
Diss() can be used to specify STERGMs, with
Form() evaluating statistics on a post-formation network,
Persist() on post-dissolution (i.e., persistence) network, and
Diss() on the post-dissolution network, but with statistics negated for convenience.
Cross() can be used to specify models for changes (i.e., a “virtual” network that has edges where the previous network differs from the current one) and models for cross-section.
NetSeries() constructor can be used to specify network series for conditional estimation and simulation (though
tergm does it automatically for appropriate input).
Constraints applied via
constraints= argument for
simulate.tergm() are now applied to the sampled or estimated networks rather than to formation and dissolution phases separately.
Control parameters in tergm's functions can now be specified using
stergm and its family of functions has been deprecated.
s_ function) and
d_ functions) had bugs fixed.
A bug involving assumptions based on the first entry of the
lasttoggle vector has been corrected.
A number of broken links has been fixed.
The package no longer (incorrectly) requires R 3.6.0 or the very-very latest version of
Progress reports are now printed to
stderr rather than
ergm 3.10 API changes.
Optimizations to make use of
ergm 3.10 APIs and parallel facilities.
Improved utilization of
eval.loglik= argument's default can now be controlled by a
Miscellaneous compiler warnings fixed.
3.9 API changes.
A number of methods are no longer called directly but through generics.
stergm.mcmcslave have been deprecatedin favor of
Development has been migrated to GitHub.
Constraint violations in dynamic MCMC are now handled correctly.
Native C routine registration has been added.
By request from Sam Jennes,
stergm.getMCMCsample.slave has been split out of
stergm.getMCMCsample and exported.
The list of functions exported is now explicitly defined.
robust.inverse has been replaced by
STERGM conditional MLE can now be fit to series of more than two bipartite networks. (Previously, for bipartite networks, only a series of two (i.e., one transition) could be fit.)
Miscellaneous CMLE bug fixes.
Some low-priority warnings are no longer printed by default.
A bug in formation TNT proposals has been fixed. The only analyses that may be affected are those on tiny (about 8 nodes) or extremely dense (i.e., high probability of a complete graph) networks.
A new control parameter,
SA.par.eff.pow, now controls the degree to which the magnitude of the gradient afects the rescaling of the estimating functions (see help): higher means that "stronger" parameters effectively get lower gain, making the optimization more stable.
Running with verbose=TRUE now prints
gc output periodically.
Most durational functions can now take a binary option log=, which will result in them using log-ages instead of raw ages. (In a discrete-time model, there are no 0-age ties, so log transformation is safe.)
tergm.godfather example now tests for a few more terms, degrange ages in particular.
Implemented reference to
MH_listTNT in applicable constraints in tergm as well.
Durational statistics can now take
NULL as their "role", disabling role testing.
Running STERGM EGMME with parallel > 0 no longer causes it to eat up all the memory.
Namespace prefixing has been added to some functions called
from external packages to deal with CRAN check warnings, replaced
library calls with
CITATION file to deal with CRAN check warnings (
packageDescription is no longer used).
Added S3 method registration in
NAMESPACE for all S3
networkDynamic inputs has been improved.
Changed CMLE MCMC default parameters to match those of ergm.
Additions and corrections to documentation
Most formerly undocumented 'internal' functions have been made internal by the
NAMESPACE. As far as we know, this avoids functions in use by reverse-Depending packages. These currently appear as commented items in the
Some potential memory issues revealed by Valgrind have been fixed.
Speed improvements. Internal data handling has been modified to avoid allocating (and passing around) a large matrix of tie ages unless the formula/model explicitly requires tie duration information. This increases speed of model initialization, which is especially helpful when simulating a network where the model must be re-initialized at each timestep (i.e. models with vital dynamics).
Simplified specification of offset values in formation model, when using stergm.EGMME with target statistics. Edges dissolution approximation is used to initialize the coefficients for estimation when there is an offset. See https://statnet.org/Workshops/tergm_tutorial.html for examples.
Offset terms in the target formula are automatically removed. This includes the case where the target is set equal to formation:
targets = "formation"
The simulate.networkDynamic and related function now make use of networkDynamics persistant id (PID) functionality. If the network does not have any
persistent.ids defined for vertices, a vertex.pid will be attached in a vertex attribute named
'tergm_pid' to facilitate 'bookkeeping' between the networkDynamic argument and the simulated network time step.
Parallel functionality: tergm can take user-created clusters as the control.stergm(parallel) control parameter. This is the recommended method for using tergm on a high-performance computing cluster. See ergm-parallel. Functionality is now implemented via the
parallel package, direct dependence on
snow package is removed
Addition of bipartite formation and dissolution Metropolis-Hastings proposals
Addition of a TNT dissolution proposal constraint
Inclusion of a Stergm vignette
-Inf offsets are recoded to a large negative number to be compatible with C code. The fitted coefficients will show the large negative number instead of the -Inf offset.
Namespace prefixing has been added to some functions called from external packages to deal with CRAN check warnings
Bug fix where stergm constraints were not being passed from all the way down into san
NULL (the default), the initial values
are computed using the edges dissolution approximation (Carnegie et al.) when appropriate.
If set to "zeros", the initial values are set to zeros.
SA.oh.memory = 100000 Absolute maximum number of data points per thread to store in the full optimization history.
simulate.stergm parameters: addition of
duration.dependent parameter: Logical: Whether the model terms in formula or model are duration dependent. E.g., if a duration-dependent term is used in estimation/simulation model, the probability of forming or dissolving a tie may dependent on the age the dyad status. If TRUE, the matrix of tie ages will be allocated.
Some Metropolis-Hastings proposal functions would sometimes
return incorrect acceptance probabilities when combined with the
bd constraint. This has been
simulate.networkDynamic, an error in which
vertices were queried and updated in the simulation has been
simulate.network functions now take an additional
time.offset. See help for those functions for
The Tie-NonTie (TNT) proposal has been implemented for dissolution phase models. This should improve mixing and inference for these models.
simulate.stergm now determine the
number of Metropolis-Hastings steps per time step adaptively,
stopping when the formation/dissolution process appears to have
The previously deprecated start and end attr values attached
to networks returned by
simulate.networkDynamic have been removed and
replaced with observation spells recorded as a
net.obs.period network attribute.
MCMC.interval arguments to
control.simulate.stergm have been replaced by a different
mechanism. See the help for the respective control functions for
No longer generates deprecation warnings about start and end
attrs when various internal functions use as.data.frame. Resolved
by replacing start and end with a
A bug in the check for whether terms were amenable to being fit using STERGM CMLE for multiple transitions has been fixed.
Some minor documentation typos have been fixed.
Version 3.1.1 has been skipped to ease upgrading for those using a preview release.
This package consists of the dynamic network modeling code that has been
split out of the
Changes listed in the following sections are relative to
ergm version 3.0.
Although fitting the EGMME for dissolution was possible
before, it was impractical due to nonidentifiability: for example,
one cannot fit both
edges formation and
edges dissolution with only one
target statistic. Four new statistics have been added and
documented that focus on targeting observed and hazard:
edges.ageinterval. This allow jointly fitting
formation and dissolution.
In addition to the progress plot, EGMME fitting routines can now plot the estimated gradient matrix and the matrix of correlations among the target statistics.
EGMME fitting is now more adaptive when determining when to stop the optimization and return the result.
EGMME fitting can now take advantage of multiple CPUs, cores, or cluster nodes for faster and more robust fitting.
EGMME and CMLE fitting can now accommodate a
constraints argument. However, note that the constraints
apply to post-formation (
y^-=y^0\cap\y^1) networks, not to the
final network (
y^1). This may change in the future.
CMLE can now be fit to more than two networks. (Not all ERGM terms and constraints can be used in this mode, however.)
A new (sort of) function,
been fixed and documented; it can be used to apply a specific set
of changes to a network, returning statistics of interest as it
evolves. In particular, it can be used to “retrace” the evolution
networkDynamic, calculating statistics at
discrete time points along the way.
tergm now implements a
networkDynamic LHS, to compute dynamic
network statistics at specified time points.
Fitting CMLE to network series with transitioned-from
networks having missing dyads is now possible, using automatic
simulate can now be used
for CMLE fits, takes a number of new arguments, and can be used to
“resume” a simulation from a
gof methods have been implemented for CMLE fits.
stergm EGMME initial fitting code has been
The EGMME fitting algorithm has been vastly improved and is now a lot more adaptive and able to recover from problems. Many bugs have also been fixed.
A number of
control.stergm parameters had been
renamed and otherwise changed.
statsonly to the
simulate.stergm and related functions has been
deprecated in favor of
The conditional MPLE (CMPLE) for formation and dissolution is now fit correctly. This also means that the starting values for the CMLE are much better.
Bugs in EGMME code related to handling of bipartite networks have been fixed.