The function simulate.hergm
accepts an object of class hergm
as argument and simulates networks.
# S3 method for hergm
simulate(object,
nsim = 1,
seed = NULL,
max_number = NULL,
indicator = NULL,
eta = NULL,
sample_size = 1,
verbose = 0,
...)
The function simulate.hergm
returns the simulated networks in the form of edge lists.
either object of class hergm
or formula of the form network ~ terms
; objects of class hergm
can be generated by function hergm
; network
is an object of class network
and can be created by calling the function network
; possible terms can be found in ergm.terms
and hergm.terms
.
redundant, but ensures that the simulate
method is compatible with the simulate
method of R
package stats
.
redundant, but ensures that the simulate
method is compatible with the simulate
method of R
package stats
.
maximum number of blocks.
indicators of block memberships of nodes.
ergm.terms
and hergm.terms
parameters.
number of networks to be simulated.
if verbose == -1
, no console output; if verbose == 0
, short console output; if verbose == +1
, long console output.
additional arguments, to be passed to lower-level functions in the future.
Schweinberger, M. and P. Luna (2018). HERGM: Hierarchical exponential-family random graph models. Journal of Statistical Software, 85, 1--39.
hergm, ergm.terms, hergm.terms, gof.hergm