simulate.ergmito | R Documentation |
ergmito
modelDraw samples from a fitted ergmito
model
## S3 method for class 'ergmito'
simulate(object, nsim = 1, seed = NULL, which_networks = 1L, theta = NULL, ...)
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. |
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.