Learn R Programming

hergm (version 4.1-10)

simulate.hergm: Simulate network

Description

The function simulate.hergm accepts an object of class hergm as argument and simulates networks.

Usage

# S3 method for hergm
simulate(object, 
                         nsim = 1,
                         seed = NULL,
                         max_number = NULL,
                         indicator = NULL,
                         eta = NULL,
                         sample_size = 1,
                         verbose = 0,
                         ...)

Value

The function simulate.hergm returns the simulated networks in the form of edge lists.

Arguments

object

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.

nsim

redundant, but ensures that the simulate method is compatible with the simulate method of R package stats.

seed

redundant, but ensures that the simulate method is compatible with the simulate method of R package stats.

max_number

maximum number of blocks.

indicator

indicators of block memberships of nodes.

eta

ergm.terms and hergm.terms parameters.

sample_size

number of networks to be simulated.

verbose

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.

References

Schweinberger, M. and P. Luna (2018). HERGM: Hierarchical exponential-family random graph models. Journal of Statistical Software, 85, 1--39.

See Also

hergm, ergm.terms, hergm.terms, gof.hergm