Draw samples from a fitted ergmito model

# S3 method for ergmito
simulate(object, nsim = 1, seed = NULL, which_networks = 1L, theta = NULL, ...)

Arguments

object

An object of class ergmito.

nsim

Integer scalar. Number of samples to draw from the selected set of networks.

seed

See stats::simulate

which_networks

Integer vector. Specifies what networks to sample from. It must be within 1 and nnets(object).

theta, ...

Further arguments passed to new_rergmito.

Examples

data(fivenets) fit <- ergmito(fivenets ~ edges + nodematch("female"))
#> Warning: The observed statistics (target.statistics) are near or at the boundary of its support, i.e. the Maximum Likelihood Estimates maynot exist or be hard to be estimated. In particular, the statistic(s) "edges", "nodematch.female".
# Drawing 200 samples from networks 1 and 3 from the model ans <- simulate(fit, nsim = 200, which_networks = c(1, 3))