simulate
is used to draw from separable temporal exponential family
random network models in their natural parameterizations.
See stergm
for more information on these models.## S3 method for class 'stergm':
simulate(object, nsim=1, seed=NULL,
coef.form=object$formation.fit$coef,coef.diss=object$dissolution.fit$coef,
monitor = object$targets,
time.slices, time.burnin=0, time.interval=1,
control=control.simulate.stergm(),
statsonly=time.burnin>0||time.interval>1,
stats.form = FALSE,
stats.diss = FALSE,
verbose=FALSE,
...)
## S3 method for class 'network':
simulate(object, nsim=1, seed=NULL,
formation, dissolution,
coef.form,coef.diss,
monitor = NULL,
time.slices, time.burnin=0, time.interval=1,
control=control.simulate.stergm(),
statsonly=time.burnin>0||time.interval>1,
stats.form = FALSE,
stats.diss = FALSE,
verbose=FALSE,
...)
ergm
-style formulas for the formation and
dissolution models, respectively.set.seed
.coef.form
, but for the post-dissolution network."formation"
or
"dissolution"
, to monitor their respective terms, or
"all"
to monitor distincttime.burnin==0
.time.interval==1
.control.simulate.stergm
or control.simulate.network
time.burnin==0
and time.interval==1
, and TRUE otherwise.monitor
argument instead.nsim>1
,
If statsonly==TRUE
, then if stats.form==FALSE
and
stats.diss==FALSE
, returns an mcmc
matrix with
monitored statistics, and if either of them is TRUE
, returns a
list containing elements stats
for statistics specified in the
monitor
argument, and stats.form
and stats.diss
for the respective formation and dissolution statistics. Finally, if
nsim>1
, an mcmc.list
(or list of them) of the
statistics is returned instead. If statsonly==FALSE
, a networkDynamic
object
representing the process, with ties present in the initial network
having onset -Inf
and ties present at the end of the simulation
having terminus +Inf
. Additionally, attributes
(attr
, not network attributes) are attached as follows: