powered by
ergmito
Draw samples from a fitted ergmito model
# S3 method for ergmito simulate(object, nsim = 1, seed = NULL, which_networks = 1L, theta = NULL, ...)
An object of class ergmito.
Integer scalar. Number of samples to draw from the selected set of networks.
See stats::simulate
Integer vector. Specifies what networks to sample from. It must be within 1 and nnets(object).
nnets(object)
Further arguments passed to new_rergmito.
data(fivenets) fit <- ergmito(fivenets ~ edges + nodematch("female")) # Drawing 200 samples from networks 1 and 3 from the model ans <- simulate(fit, nsim = 200, which_networks = c(1, 3))
Run the code above in your browser using DataLab