simulate.ergmito {ergmito} | R Documentation |
Draw samples from a fitted ergmito
model
Description
Draw samples from a fitted ergmito
model
Usage
## S3 method for class '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 |
theta , ... |
Further arguments passed to new_rergmito. |
Examples
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))
[Package ergmito version 0.3-1 Index]