Last data update: 2014.03.03

R: Simulation
simulateR Documentation

Simulation

Description

The function simulate.hergm simulates a network.

Usage


## S3 method for class 'hergm'
simulate(model = NULL,
                         network = NULL,
                         eta = NULL,
                         max_number = NULL,
                         indicator = NULL,
                         sample_size = 1000,
                         sample = NULL,
                         verbose = 1,
                         ...)

Arguments

model

model.

network

network object; networks can be created by calling the function network.

eta

parameters.

max_number

maximum number of blocks.

indicator

vector of block memberships of nodes.

sample_size

number of networks to be simulated.

sample

the argument sample is a list of arguments generated by the function hergm; do not use sample unless the function hergm was used to estimate the model and you want to conduct goodness-of-fit assessments. An alternative are goodness-of-fit tests by the function hergm.gof.

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

edgelistslist of edgelists of generated networks.

See Also

network, hergm

Examples

## Not run: 
data(example)

sample <- simulate.hergm(d ~ edges_ij + triangle_ijk)

## End(Not run)

Results