hergm.simulate: Simulate network

simulate.hergmR Documentation

Simulate network

Description

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

Usage


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

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.

Value

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

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


hergm documentation built on Nov. 10, 2022, 5:09 p.m.

Related to hergm.simulate in hergm...